24👍
✅
Your validation method needs to be called clean_due_date
. In Django < 3 it should raise forms.ValidationError
, but in Django 3 it should use core.exceptions.ValidationError
.
I have no idea what the get_summary
and get_description
methods are for, they aren’t called and don’t do anything useful.
Source:stackexchange.com