Mercurial > public > sg101
comparison gpp/news/models.py @ 218:6dbb8faef085
Implement #86, add a front page expiration date to news stories.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 01 Jun 2010 05:16:40 +0000 |
parents | 65016249bf35 |
children | 71fd8454688b |
comparison
equal
deleted
inserted
replaced
217:237710206167 | 218:6dbb8faef085 |
---|---|
32 short_text = models.TextField() | 32 short_text = models.TextField() |
33 long_text = models.TextField(blank=True) | 33 long_text = models.TextField(blank=True) |
34 date_submitted = models.DateTimeField(db_index=True) | 34 date_submitted = models.DateTimeField(db_index=True) |
35 allow_comments = models.BooleanField(default=True) | 35 allow_comments = models.BooleanField(default=True) |
36 tags = TagField() | 36 tags = TagField() |
37 front_page_expiration = models.DateField(null=True, blank=True) | |
37 | 38 |
38 class Meta: | 39 class Meta: |
39 abstract = True | 40 abstract = True |
40 | 41 |
41 | 42 |