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')
Пример #2
0
 def title(self):
     return name_in_language(
         self, 'title',
         '%s:%s' % (self.identifier_scheme, self.identifier_value))
Пример #3
0
 def name(self):
     return name_in_language(self, 'name')
Пример #4
0
 def credit(self):
     return name_in_language(self, 'credit')
Пример #5
0
 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')
Пример #7
0
 def description(self):
     return name_in_language(self, 'description')
Пример #8
0
 def title(self):
     return name_in_language(self, 'title',
                 '%s:%s' % (self.identifier_scheme, self.identifier_value))
Пример #9
0
 def name(self):
     return name_in_language(self, 'name')
 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')
Пример #11
0
 def credit(self):
     """
     The credit for this webcam in the current language
     """
     return name_in_language(self, 'credit')
Пример #12
0
 def description(self):
     """
     The description for this webcam in the current language
     """
     return name_in_language(self, 'description')
Пример #13
0
 def title(self):
     """
     The title for this webcam in the current language
     """
     return name_in_language(self, 'title')
Пример #14
0
 def verbose_name_singular(self):
     return name_in_language(self, 'verbose_name_singular', self.slug)
Пример #15
0
 def verbose_name_singular(self):
     return name_in_language(self, 'verbose_name_singular', self.slug)
Пример #16
0
 def verbose_name_plural(self):
     return name_in_language(self, 'verbose_name_plural', self.slug)
Пример #17
0
 def verbose_name_plural(self):
     return name_in_language(self, 'verbose_name_plural', self.slug)
Пример #18
0
 def title(self):
     return name_in_language(self, 'title')
Пример #19
0
 def title(self):
     return name_in_language(self, 'title')
Пример #20
0
 def credit(self):
     return name_in_language(self, 'credit')
Пример #21
0
 def verbose_name(self):
     return name_in_language(self, 'verbose_name')