Commits

Richard Barran committed 61ff36a

Tidy source code.

  • Participants
  • Parent commits e02131a

Comments (0)

Files changed (2)

File cmsplugin_news/admin.py

     date_hierarchy = 'pub_date'
     list_display = ('slug', 'title', 'is_published', 'pub_date')
     #list_editable = ('title', 'is_published')
-    list_filter = ('is_published', )
+    list_filter = ('is_published',)
     search_fields = ['title', 'excerpt', 'content']
     prepopulated_fields = {'slug': ('title',)}
     form = NewsForm

File cmsplugin_news/models.py

     class Meta:
         verbose_name = _('News')
         verbose_name_plural = _('News')
-        ordering = ('-pub_date', )
+        ordering = ('-pub_date',)
 
     def __unicode__(self):
         return self.title