#6845: Model validation and its propagation to ModelForms
--------------------------------------+-------------------------------------
Reporter: Honza_Kral | Owner: nobody
Status: new | Milestone: 1.0 beta
Component: django.newforms | Version: SVN
Resolution: | Keywords: newforms validation
model modelform ep2008
Stage: Accepted | Has_patch: 1
Needs_docs: 1 | Needs_tests: 1
Needs_better_patch: 0 |
--------------------------------------+-------------------------------------
Comment (by Honza_Kral):
Replying to [comment:22 Victor Andrée <[EMAIL PROTECTED]>]:
> Uh, would it still be possible to '''manipulate''' cleaned_data in
Form.validate? I currently have a clean-method which creates a
cleaned_data-item out of several fields, i.e. it constructs a Python value
from several fields. I consider it a clean solution in my code (albeit
unorthodox).
No, validate shouldn't manipulate data, but you can still override clean()
when necessary.
--
Ticket URL: <http://code.djangoproject.com/ticket/6845#comment:23>
Django Code <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
-~----------~----~----~----~------~----~------~--~---