Source

gnocchi-cms / gnocchi / cms / models.py

Diff from to

gnocchi/cms/models.py

 
 from gnocchi.tools.attr import AttrHelper
 
+# Translations
+from django.utils.translation import ugettext_lazy as _
+
 #
 # DB stored templates
 #
     content = models.TextField()
 
     class Meta:
+        verbose_name = _('template')
+        verbose_name_plural = _('templates')
         ordering = ('path',)
     def __unicode__(self):
         return self.path
     objects = PageManager()
 
     class Meta:
+        verbose_name = _('page')
+        verbose_name_plural = _('pages')
         unique_together = (
             ('parent', 'path',),
         )
     name = models.CharField(max_length=200)
     content = models.TextField(blank=True)
     class Meta:
+        verbose_name = _('fragment')
+        verbose_name_plural = _('fragments')
         unique_together = (
             ('page', 'name',)
         )
     name = models.SlugField()
     description = models.CharField(max_length=1024, blank=True)
     content = models.TextField(blank=True)
-
+    class Meta:
+        verbose_name = _('style sheet')
+        verbose_name_plural = _('style sheets')
     def __unicode__(self):
         return u'[%s] %s' % (self.name, self.description,)
     def get_absolute_url(self):