assignment: Allow today's date.

This commit is contained in:
Ben Sturmfels 2021-12-11 11:29:13 +11:00
parent 52c0eb8e6c
commit 26ac00e864
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

@ -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')