Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#1604 closed defect (invalid)

FormField.convert_post_data() bug

Reported by: anonymous Owned by: Adrian Holovaty
Component: Core (Other) Version: magic-removal
Severity: normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

In FormField.convert_post_data(), it is possible to set a new entry instead of replacing the old one when self.field_name != self.get_member_name() (for instance in foreign keys). The required change is from

d = new_data.getlist(self.field_name)

to

d = new_data.pop(self.field_name)

George

Change History (2)

comment:1 Changed 10 years ago by Adrian Holovaty

Status: newassigned

comment:2 Changed 10 years ago by Adrian Holovaty

Resolution: invalid
Status: assignedclosed

Please reopen with more information.

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