Saturday, November 26, 2011

Django - ValidationError on saving a model instance containing DateField

hi everyone. I'm working on this view: http://dpaste.com/661995/ and 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: http://dpaste.com/661996/

any idea? thanx

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment