#2403: forms documentation should use flatten_data rather than __dict__
-----------------------------+----------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: jacob
Type: defect | Status: new
Priority: normal | Milestone:
Component: Documentation | Version: SVN
Severity: normal | Keywords:
-----------------------------+----------------------------------------------
http://www.djangoproject.com/documentation/forms/
{{{
else:
errors = {}
# This makes sure the form accurate represents the fields of the
place.
new_data = place.__dict__
}}}
When the object has a associated references, the __dict__ approach does
not populate those other items. I tracked down to understand why a custom
view was not working but a generic view was.
that new_data should be replaced by place.flatten_data()
--
Ticket URL: <http://code.djangoproject.com/ticket/2403>
Django <http://code.djangoproject.org/>
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
-~----------~----~----~----~------~----~------~--~---