# HG changeset patch # User Brian Neal # Date 1418690925 21600 # Node ID 21946dc3662d0fa4888393515f2e8fa752bb802f # Parent 928b97ec55a7eaec58ffaaf9d54ca04553e618e7 Add can_comment_on() check for contests. diff -r 928b97ec55a7 -r 21946dc3662d contests/models.py --- 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.