Fixed bug in Event.get_status() about expire.
This commit is contained in:
@@ -262,8 +262,9 @@ class Event(models.Model):
|
|||||||
elif self.last_day:
|
elif self.last_day:
|
||||||
if self.last_day < now:
|
if self.last_day < now:
|
||||||
return 'expired'
|
return 'expired'
|
||||||
elif self.alt_first_day and self.alt_first_day < now:
|
elif self.alt_first_day:
|
||||||
return 'expired'
|
if self.alt_first_day < now:
|
||||||
|
return 'expired'
|
||||||
elif self.first_day and self.first_day < now:
|
elif self.first_day and self.first_day < now:
|
||||||
return 'expired'
|
return 'expired'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user