Mercurial > public > sg101
diff gpp/gcalendar/admin.py @ 389:3fa61786abf1
Fixing #190; calendar admin always reports 1 event being approved.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 20 Mar 2011 20:23:29 +0000 |
parents | d77e0dc772ad |
children | 345825e6dcae |
line wrap: on
line diff
--- a/gpp/gcalendar/admin.py Sat Mar 19 05:03:51 2011 +0000 +++ b/gpp/gcalendar/admin.py Sun Mar 20 20:23:29 2011 +0000 @@ -41,8 +41,8 @@ Ratchets the selected events forward to the approved state. Ignores events that aren't in the proper state. """ + count = 0 for event in qs: - count = 0 if event.status in self.pending_states: event.status = self.pending_states[event.status] event.save()