Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

#2403 closed defect (fixed)

[patch] forms documentation should use flatten_data rather than __dict__

Reported by: cmgreen@… Owned by: jacob
Component: Documentation Version: master
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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)

doc_update.diff (538 bytes) - added by heckj@… 9 years ago.
attaching patch to resolve exactly this

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by heckj@…

attaching patch to resolve exactly this

comment:1 Changed 9 years ago by heckj@…

  • Summary changed from forms documentation should use flatten_data rather than __dict__ to [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...

comment:2 Changed 8 years ago by anonymous

  • Resolution set to fixed
  • Status changed from new to closed

This was fixed in r3758.

Note: See TracTickets for help on using tickets.
Back to Top