#2403 closed defect (fixed)
[patch] forms documentation should use flatten_data rather than __dict__
Reported by: | Owned by: | Jacob | |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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()
Attachments (1)
Change History (3)
by , 18 years ago
Attachment: | doc_update.diff added |
---|
comment:1 by , 18 years ago
Summary: | forms documentation should use flatten_data rather than __dict__ → [patch] forms documentation should use flatten_data rather than __dict__ |
---|
attached patch to update the forms/manipulator documentation to utilize manipulator.flatten_data() instead of accessing the objects dict for the raw goods...
Note:
See TracTickets
for help on using tickets.
attaching patch to resolve exactly this