Mercurial > public > sg101
diff gpp/gcalendar/models.py @ 139:e04d91babfcf
Close #30. Create an admin dashboard to see pending content and requests for admin action.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 29 Nov 2009 22:33:15 +0000 |
parents | 48621ba5c385 |
children | d77e0dc772ad |
line wrap: on
line diff
--- a/gpp/gcalendar/models.py Fri Nov 27 21:55:32 2009 +0000 +++ b/gpp/gcalendar/models.py Sun Nov 29 22:33:15 2009 +0000 @@ -94,6 +94,7 @@ self.html = site_markup(self.description) super(Event, self).save(*args, **kwargs) - def needs_approval(self): - return self.status in (self.NEW, self.EDIT_REQ, self.DEL_REQ) + def is_approved(self): + return self.status not in (self.NEW, self.EDIT_REQ, self.DEL_REQ) + is_approved.boolean = True