UPD: dav_registration: display canceled state of events
All checks were successful
buildbot/tox Build done.

This commit is contained in:
2021-01-27 11:11:03 +01:00
parent 4b772e743b
commit 2b8c60a675
2 changed files with 14 additions and 2 deletions

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()