def get_model(self, options):
        class ViewMetadataBase(MetadataBaseModel):
            _view = models.CharField(_('view'), max_length=255, unique=not (options.use_sites or options.use_i18n), default="", blank=True)
            if options.use_sites:
                _site = models.ForeignKey(Site, null=True, blank=True, verbose_name=_("site"))
            if options.use_i18n:
                _language = models.CharField(_("language"), max_length=5, null=True, blank=True, db_index=True, choices=settings.LANGUAGES)
            objects = self.get_manager(options)()

            def _process_context(self, context):
                """ Use the context when rendering any substitutions.  """
                if 'view_context' in context:
                    self.__context = context['view_context']

            def _populate_from_kwargs(self):
                return {'view_name': self._view}
        
            def _resolve_value(self, name):
                value = super(ViewMetadataBase, self)._resolve_value(name)
                try:
                    return _resolve(value, context=self.__context)
                except __HOLE__:
                    return value

            def __unicode__(self):
                return self._view
    
            class Meta:
                abstract = True
                unique_together = self.get_unique_together(options)

        return ViewMetadataBase
dataset/ETHPy150Open willhardy/django-seo/rollyourown/seo/backends.py/ViewBackend.get_model