I’m still on this view. Now I have a ValidationError while trying to save the model instance. The error is:
Enter a valid date in YYYY-MM-DD format
The DateField is correctly filled, the type of instance passed to model is unicode. I have to do something like a cast from unicode to datetime or there’s something I’m doing wrong before…?
This is the traceback.
Any idea?
Thanx
If you already know that the form is valid through
form.is_valid(), consider working withcleaned_datainstead of working directly with therequest.POST: