UPD: dav_registration: display canceled state of events
buildbot/tox Build done.

This commit is contained in:
heinzel committed 2021-01-27 11:11:03 +01:00
1 parent 4b772e743b
commit 2b8c60a675
2 files changed
+14 -2

No files matched your search

+3
View File
@@ -354,6 +354,9 @@ class Event(models.Model):
today = datetime.date.today()
return self.deadline and self.deadline < today
def is_canceled(self):
return self.workflow.has_reached_status('canceled')
def get_number(self):
return self.workflow.get_number()