diff gpp/news/models.py @ 462:53fdaf0da539

Adding a priority field to news stories for front page display purposes. This fixes #223.
author Brian Neal <bgneal@gmail.com>
date Tue, 05 Jul 2011 21:40:56 +0000
parents d424b8bae71d
children bbbc357ac5f3
line wrap: on
line diff
--- a/gpp/news/models.py	Tue Jul 05 19:24:18 2011 +0000
+++ b/gpp/news/models.py	Tue Jul 05 21:40:56 2011 +0000
@@ -37,6 +37,7 @@
     tags = TagField()
     front_page_expiration = models.DateField(null=True, blank=True)
     update_date = models.DateTimeField(db_index=True, blank=True)
+    priority = models.IntegerField(db_index=True, default=0, blank=True)
 
     class Meta:
         abstract = True