Fixed bug in Event.get_status() about expire.

This commit is contained in:
2018-02-24 16:57:13 +01:00
parent 1751293fd1
commit e77280aaa1

View File

@@ -262,7 +262,8 @@ class Event(models.Model):
elif self.last_day:
if self.last_day < now:
return 'expired'
elif self.alt_first_day and self.alt_first_day < now:
elif self.alt_first_day:
if self.alt_first_day < now:
return 'expired'
elif self.first_day and self.first_day < now:
return 'expired'