assignment: Allow today's date.
This commit is contained in:
parent
52c0eb8e6c
commit
26ac00e864
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ from .terms import TERMS
|
||||||
|
|
||||||
|
|
||||||
def validate_in_past(value):
|
def validate_in_past(value):
|
||||||
if value >= timezone.now().date():
|
if value > timezone.now().date():
|
||||||
raise ValidationError('Enter a date in the past')
|
raise ValidationError('Enter a date in the past')
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue