def backwards(self, orm): """ Move i18n names to webcam object """ for webcam in orm.Webcam.objects.all(): webcam.title = name_in_language(webcam, 'title') webcam.description = name_in_language(webcam, 'description') webcam.credit = name_in_language(webcam, 'credit')
def title(self): return name_in_language( self, 'title', '%s:%s' % (self.identifier_scheme, self.identifier_value))
def name(self): return name_in_language(self, 'name')
def credit(self): return name_in_language(self, 'credit')
def description(self): return name_in_language(self, 'description')
def backwards(self, orm): """ Move category names from the new i18n format """ for pc in orm.PodcastCategory.objects.all(): pc.name = name_in_language(pc, 'name')
def title(self): return name_in_language(self, 'title', '%s:%s' % (self.identifier_scheme, self.identifier_value))
def credit(self): """ The credit for this webcam in the current language """ return name_in_language(self, 'credit')
def description(self): """ The description for this webcam in the current language """ return name_in_language(self, 'description')
def title(self): """ The title for this webcam in the current language """ return name_in_language(self, 'title')
def verbose_name_singular(self): return name_in_language(self, 'verbose_name_singular', self.slug)
def verbose_name_plural(self): return name_in_language(self, 'verbose_name_plural', self.slug)
def title(self): return name_in_language(self, 'title')
def verbose_name(self): return name_in_language(self, 'verbose_name')