Code

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#1605 closed defect (fixed)

DateTime fields not being populated back

Reported by: yml Owned by: adrian
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: UI/UX:

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()

Attachments (0)

Change History (2)

comment:1 Changed 8 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 8 years ago by mtredinnick

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

Fixed in r3758.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.