Revision 10294684
Added by Benjamin Dauvergne over 13 years ago
| calebasse/dossiers/models.py | ||
|---|---|---|
|
|
||
|
def days_before_notification_expiration(self):
|
||
|
today = datetime.today()
|
||
|
notification = get_last_notification(self)
|
||
|
notification = self.get_last_notification(self)
|
||
|
if not notification:
|
||
|
return 0
|
||
|
if notification.end_date < today:
|
||
Also available in: Unified diff
fix wrong method ref