Revision e74203ca
b/flowspec/models.py | ||
---|---|---|
317 | 317 |
|
318 | 318 |
@property |
319 | 319 |
def days_to_expire(self): |
320 |
if self.status not in ['EXPIRED', 'ADMININACTIVE', 'ERROR']: |
|
320 |
if self.status not in ['EXPIRED', 'ADMININACTIVE', 'ERROR', 'INACTIVE']:
|
|
321 | 321 |
expiration_days = (self.expires - datetime.date.today()).days |
322 | 322 |
if expiration_days < settings.EXPIRATION_NOTIFY_DAYS: |
323 | 323 |
return "%s" %expiration_days |
Also available in: Unified diff