Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
138:7ea842744a57 | 139:e04d91babfcf |
---|---|
92 | 92 |
93 def save(self, *args, **kwargs): | 93 def save(self, *args, **kwargs): |
94 self.html = site_markup(self.description) | 94 self.html = site_markup(self.description) |
95 super(Event, self).save(*args, **kwargs) | 95 super(Event, self).save(*args, **kwargs) |
96 | 96 |
97 def needs_approval(self): | 97 def is_approved(self): |
98 return self.status in (self.NEW, self.EDIT_REQ, self.DEL_REQ) | 98 return self.status not in (self.NEW, self.EDIT_REQ, self.DEL_REQ) |
99 is_approved.boolean = True | |
99 | 100 |