#14885: is_valid for ModelForm changes instance if instance is provided
------------------------------------+---------------------------------------
Reporter: italomaia | Owner: nobody
Status: closed | Milestone:
Component: Uncategorized | Version: 1.2
Resolution: invalid | Keywords: forms, is_valid, bad data
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
------------------------------------+---------------------------------------
Changes (by anonymous):
* status: new => closed
* needs_better_patch: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_docs: => 0
Comment:
It is not clear from the report what this ticket is reporting, it doesn't
help at all that the example code isn't correct/complete:
* The view isn't instanciating the ModelForm with request-FILES,
something absolutely necessary when dealing with file uploads.
* The ModelForm definition is incomplete.
* The code seems to be using some third party
`simple.direct_to_template()` function.
* The validators argument value has a syntax error.
If the OP or anyone wants to reopen this, please provide a working test
case and a clear description of the issue at hand.
Remember Since Django 1.2 ModelFom validation also triggers Model
validation
--
Ticket URL: <http://code.djangoproject.com/ticket/14885#comment:1>
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.