Mercurial > public > sg101
changeset 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 | 928b97ec55a7 |
children | 63209e53f3aa b59c154d0163 |
files | contests/models.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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.