Mercurial > public > sg101
comparison gpp/news/admin.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 | 701730b2fcda |
children | 7854d75427af |
comparison
equal
deleted
inserted
replaced
461:2d96d9bcf0de | 462:53fdaf0da539 |
---|---|
34 short_text=pending_story.short_text, | 34 short_text=pending_story.short_text, |
35 long_text=pending_story.long_text, | 35 long_text=pending_story.long_text, |
36 date_submitted=pending_story.date_submitted, | 36 date_submitted=pending_story.date_submitted, |
37 allow_comments=pending_story.allow_comments, | 37 allow_comments=pending_story.allow_comments, |
38 tags=pending_story.tags, | 38 tags=pending_story.tags, |
39 front_page_expiration=pending_story.front_page_expiration) | 39 front_page_expiration=pending_story.front_page_expiration, |
40 priority=pending_story.priority) | |
40 story.save() | 41 story.save() |
41 pending_story.delete() | 42 pending_story.delete() |
42 | 43 |
43 count = len(qs) | 44 count = len(qs) |
44 msg = "1 story" if count == 1 else "%d stories" % count | 45 msg = "1 story" if count == 1 else "%d stories" % count |