Mercurial > public > sg101
diff contests/models.py @ 867:21946dc3662d
Add can_comment_on() check for contests.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 15 Dec 2014 18:48:45 -0600 |
parents | 5977b43499f7 |
children | e14f54f16dbc |
line wrap: on
line diff
--- a/contests/models.py Wed Dec 03 19:08:12 2014 -0600 +++ b/contests/models.py Mon Dec 15 18:48:45 2014 -0600 @@ -77,6 +77,9 @@ """ return not self.win_date and self.is_active() + def can_comment_on(self): + return self.is_active() + def pick_winners(self): """ This function randomly picks winners from all the contestants.