Mercurial > public > sg101
comparison gpp/news/admin.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 | 1246a4f1ab4f |
comparison
equal
deleted
inserted
replaced
217:237710206167 | 218:6dbb8faef085 |
---|---|
25 category=pending_story.category, | 25 category=pending_story.category, |
26 short_text=pending_story.short_text, | 26 short_text=pending_story.short_text, |
27 long_text=pending_story.long_text, | 27 long_text=pending_story.long_text, |
28 date_submitted=datetime.datetime.now(), | 28 date_submitted=datetime.datetime.now(), |
29 allow_comments=pending_story.allow_comments, | 29 allow_comments=pending_story.allow_comments, |
30 tags=pending_story.tags) | 30 tags=pending_story.tags, |
31 front_page_expiration=pending_story.front_page_expiration) | |
31 story.save() | 32 story.save() |
32 pending_story.delete() | 33 pending_story.delete() |
33 | 34 |
34 approve_story.short_description = "Approve selected pending stories" | 35 approve_story.short_description = "Approve selected pending stories" |
35 | 36 |