Opened 19 years ago

Closed 18 years ago

Last modified 18 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

Description

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

use:
new_data = manipulator.flatten_data()

Change History (2)

comment:1 by anonymous, 19 years ago

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 by Malcolm Tredinnick, 18 years ago

Resolution: fixed
Status: newclosed

Fixed in r3758.

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