Mercurial > public > sg101
diff gpp/weblinks/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 | d424b8bae71d |
children |
line wrap: on
line diff
--- a/gpp/weblinks/admin.py Fri Mar 25 23:59:16 2011 +0000 +++ b/gpp/weblinks/admin.py Sat Mar 26 00:26:00 2011 +0000 @@ -33,6 +33,10 @@ link.save() pending_link.delete() + count = len(qs) + msg = "1 link" if count == 1 else "%d links" % count + self.message_user(request, "%s approved." % msg) + approve_links.short_description = "Approve selected links"