Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#1605 closed defect (fixed)

DateTime fields not being populated back

Reported by: yml Owned by: Adrian Holovaty
Component: Core (Other) Version: 0.91
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


There's a problem with DateTime fields not being populated back to the form using the edit_place function.

This seems to provide the solution:

In place of:
new_data = place.dict

new_data = manipulator.flatten_data()

Change History (2)

comment:1 Changed 13 years ago by anonymous

The current forms & manipulators documentation says to use place.dict, but the admin and crud generic view both use flaten_data(). Is this a documentation bug?

A similar situation exists for file fields - to upload successfully, you must add request.FILES to new_data; but this is not mentioned in the forms and manipulators documentation.

comment:2 Changed 13 years ago by Malcolm Tredinnick

Resolution: fixed
Status: newclosed

Fixed in r3758.

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