parent
6367a98134
commit
5c41dafc97
|
@ -38,13 +38,13 @@ def validate_options(options):
|
||||||
if not interval and not unit:
|
if not interval and not unit:
|
||||||
return
|
return
|
||||||
|
|
||||||
if interval == 'month':
|
if unit == 'month':
|
||||||
unit *= 30
|
interval *= 30
|
||||||
|
|
||||||
elif interval == 'week':
|
elif unit == 'week':
|
||||||
unit *= 7
|
interval *= 7
|
||||||
|
|
||||||
if unit > 90:
|
if interval > 90:
|
||||||
raise ValidationError('Notification cannot be more than 90 days into the future.')
|
raise ValidationError('Notification cannot be more than 90 days into the future.')
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue