1. Bernardo Cabezas Serra
  2. cmsplugin-advancednews


Bernardo Cabezas Serra  committed 8270f42 Merge

merge hvad

  • Participants
  • Parent commits 64407c2, c3cc10b
  • Branches default

Comments (0)

Files changed (1)

File cmsplugin_advancednews/models.py

View file
  • Ignore whitespace
 from cms.models import CMSPlugin
-from nani.models import TranslatableModel, TranslatedFields
-from nani.manager import TranslationManager
+from hvad.models import TranslatableModel, TranslatedFields
+from hvad.manager import TranslationManager
 from cms.models.fields import PlaceholderField
 class PublishedNewsManager(TranslationManager):
     """ News model """
     slug = models.SlugField(_('Slug'), unique_for_date='pub_date', 
-                            help_text=_('A slug is a short name which uniquely identifies the news item for this day'))
+            help_text=_('Name in lowercase with no spaces which will be chown in the URL of the navigator'))
     category = models.ForeignKey("Category", related_name="n_category",
                         null=True, blank=True, default=None)
     created = models.DateTimeField(auto_now_add=True, editable=False)
     updated = models.DateTimeField(auto_now=True, editable=False)
-    content = PlaceholderField('content')
+    content = PlaceholderField('content', language_aware=True,
+            verbose_name=_('Full news body'),
+            help_text=_('Full content that will be shown in the body of the news entry. \
+                    <br/><b>Quick note</b>: To add text content: \
+                    <br/>Select Available Plutins > Text > Add a plugin'))   
     translations = TranslatedFields( 
-        title = models.CharField(_('Title'), max_length=255),
-        excerpt = models.TextField(_('Excerpt'), blank=True),   
+        title = models.CharField(verbose_name=_('Title'), max_length=255,
+            help_text='Title of the news'),
+        excerpt = models.TextField(verbose_name=_('Excerpt'), blank=True,
+            help_text=_('Short exceprt of the new. Will be shown on the news list.'))
     published = PublishedNewsManager()