Commits

Bernardo Cabezas Serra committed c3cc10b

Updated to hvad 0.2

Comments (0)

Files changed (1)

cmsplugin_advancednews/models.py

 
 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()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.