comparison 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
comparison
equal deleted inserted replaced
864:928b97ec55a7 867:21946dc3662d
75 winners. 75 winners.
76 76
77 """ 77 """
78 return not self.win_date and self.is_active() 78 return not self.win_date and self.is_active()
79 79
80 def can_comment_on(self):
81 return self.is_active()
82
80 def pick_winners(self): 83 def pick_winners(self):
81 """ 84 """
82 This function randomly picks winners from all the contestants. 85 This function randomly picks winners from all the contestants.
83 86
84 """ 87 """