comparison 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
comparison
equal deleted inserted replaced
461:2d96d9bcf0de 462:53fdaf0da539
35 date_submitted = models.DateTimeField(db_index=True) 35 date_submitted = models.DateTimeField(db_index=True)
36 allow_comments = models.BooleanField(default=True) 36 allow_comments = models.BooleanField(default=True)
37 tags = TagField() 37 tags = TagField()
38 front_page_expiration = models.DateField(null=True, blank=True) 38 front_page_expiration = models.DateField(null=True, blank=True)
39 update_date = models.DateTimeField(db_index=True, blank=True) 39 update_date = models.DateTimeField(db_index=True, blank=True)
40 priority = models.IntegerField(db_index=True, default=0, blank=True)
40 41
41 class Meta: 42 class Meta:
42 abstract = True 43 abstract = True
43 44
44 45