Mercurial > public > sg101
diff gpp/news/admin.py @ 398:701730b2fcda
Fixing #196; add status messages in the admin after approving news and links.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 26 Mar 2011 00:26:00 +0000 |
parents | 7c7201f942fe |
children | 53fdaf0da539 |
line wrap: on
line diff
--- a/gpp/news/admin.py Fri Mar 25 23:59:16 2011 +0000 +++ b/gpp/news/admin.py Sat Mar 26 00:26:00 2011 +0000 @@ -40,6 +40,10 @@ story.save() pending_story.delete() + count = len(qs) + msg = "1 story" if count == 1 else "%d stories" % count + self.message_user(request, "%s approved." % msg) + approve_story.short_description = "Approve selected pending stories" class Media: