Commits

Sergey Generalov committed eb712c5

added image to news

  • Participants
  • Parent commits 81b2fdc

Comments (0)

Files changed (1)

File cmsplugin_news/models.py

 
 from cms.models import CMSPlugin
 
+from filebrowser.fields import FileBrowseField
+
 class PublishedNewsManager(models.Manager):
     """
         Filters out all unpublished and items with a publication date in the future
     
     created         = models.DateTimeField(auto_now_add=True, editable=False)
     updated         = models.DateTimeField(auto_now=True, editable=False)
+
+    image           = FileBrowseField(_('Picture'), max_length=256, format='Image', blank=True, null=True)
     
     published = PublishedNewsManager()
     objects = models.Manager()