Mercurial > public > sg101
diff gpp/bio/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 | 9d470c7a2b93 |
children | 98b373ca09f3 |
line wrap: on
line diff
--- a/gpp/bio/admin.py Fri Mar 25 23:59:16 2011 +0000 +++ b/gpp/bio/admin.py Sat Mar 26 00:26:00 2011 +0000 @@ -56,7 +56,7 @@ profile.status_date = now profile.save() - count = qs.count() + count = len(qs) msg = "1 user" if count == 1 else "%d users" % count self.message_user(request, "%s successfully marked as %s." % (msg, bio.models.USER_STATUS_CHOICES[status][1]))