MIGRATION: dav_registration: try to incoorporate feedback from trainers
This commit is contained in:
1 parent
0e1ec5c733
commit
aa353ec6a5
8 files changed
+75
-10
No files matched your search
@@ -310,6 +310,10 @@ class Event(models.Model):
|
||||
logger.info('Event updated: %s', self)
|
||||
signals.event_updated.send(sender=self.__class__, event=self, diff=diff_lines, user=self.editor)
|
||||
|
||||
def is_deadline_expired(self):
|
||||
today = datetime.date.today()
|
||||
return self.deadline and self.deadline < today
|
||||
|
||||
def get_number(self):
|
||||
return self.workflow.get_number()
|
||||
|
||||
|
||||
Reference in new issue
Block a user