#12643: Should mention to call parent clean method for modelForm in custom
validation chapter
------------------------------------------+---------------------------------
Reporter: fgaudin | Owner: nobody
Status: new | Milestone:
Component: Documentation | Version: 1.1
Keywords: ModelForm, validation, clean | Stage: Unreviewed
Has_patch: 0 |
------------------------------------------+---------------------------------
I and some collegues always refer to
http://docs.djangoproject.com/en/1.1/ref/forms/validation/#cleaning-and-
validating-fields-that-depend-on-each-other to check how to do custom
validation, I've been looking for a while before finding that I need to
call the parent clean method for modelForm (to avoid postgres to raise the
unique constraint error).
I found later that it was written in ModelForm documentation. Just a
warning with a link to this chapter would be great.
--
Ticket URL: <http://code.djangoproject.com/ticket/12643>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.