Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#27905 closed Bug (fixed)

Admin RelatedFieldWidgetWrapper ignores wrapped widget's value_omitted_from_data()

Reported by: Raphael Merx Owned by: Raphael Merx
Component: contrib.admin Version: 1.10
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When using a custom widget for a related field in the admin, the value_omitted_from_data method on the custom widget is ignored because RelatedFieldWidgetWrapper does not delegate value_omitted_from_data to the wrapped widget.

Change History (5)

comment:1 by Raphael Merx, 8 years ago

Has patch: set
Version 0, edited 8 years ago by Raphael Merx (next)

comment:2 by Tim Graham, 8 years ago

Summary: Admin RelatedFieldWidgetWrapper ignores custom value_omitted_from_dataAdmin RelatedFieldWidgetWrapper ignores wrapped widget's value_omitted_from_data()
Triage Stage: UnreviewedReady for checkin

comment:3 by Tim Graham <timograham@…>, 8 years ago

Resolution: fixed
Status: assignedclosed

In 2a3a0eb0:

Fixed #27905 -- Added RelatedFieldWidgetWrapper.value_omitted_from_data().

comment:4 by Tim Graham <timograham@…>, 8 years ago

In 89b31b3:

[1.11.x] Fixed #27905 – Added RelatedFieldWidgetWrapper.value_omitted_from_data().

Backport of fd75c8f2b7070774f6e90f408cb5cddf65b8734e from master

comment:5 by Tim Graham <timograham@…>, 8 years ago

In c4b8c463:

[1.10.x] Fixed #27905 -- Added RelatedFieldWidgetWrapper.value_omitted_from_data().

Backport of fd75c8f2b7070774f6e90f408cb5cddf65b8734e from master

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