Mercurial > public > sg101
comparison news/admin.py @ 1005:9fc12bbc8c81
Tweaks for news v2.0 with old news pending stories present.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 26 Nov 2015 23:16:07 -0600 |
parents | c6c3ba5cf6eb |
children | cd4db27c90e3 |
comparison
equal
deleted
inserted
replaced
1003:fa52bfb28217 | 1005:9fc12bbc8c81 |
---|---|
77 front_page_expiration=pending_story.front_page_expiration, | 77 front_page_expiration=pending_story.front_page_expiration, |
78 priority=pending_story.priority, | 78 priority=pending_story.priority, |
79 meta_description=pending_story.meta_description, | 79 meta_description=pending_story.meta_description, |
80 short_markup=pending_story.short_markup, | 80 short_markup=pending_story.short_markup, |
81 long_markup=pending_story.long_markup, | 81 long_markup=pending_story.long_markup, |
82 admin_content=pending_story.admin_content) | 82 admin_content=pending_story.admin_content, |
83 version=pending_story.version) | |
83 story.save() | 84 story.save() |
84 pending_story.delete() | 85 pending_story.delete() |
85 | 86 |
86 # Create comment thread if configured to do so. | 87 # Create comment thread if configured to do so. |
87 forum_slug = story.category.forum_slug | 88 forum_slug = story.category.forum_slug |