UPD: dav_registration: display canceled state of events
All checks were successful
buildbot/tox Build done.
All checks were successful
buildbot/tox Build done.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user