Opened 2 years ago

Closed 2 years ago

Last modified 2 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 Changed 2 years ago by Raphael Merx

Has patch: set
Last edited 2 years ago by Tim Graham (previous) (diff)

comment:2 Changed 2 years ago by Tim Graham

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 Changed 2 years ago by Tim Graham <timograham@…>

Resolution: fixed
Status: assignedclosed

In 2a3a0eb0:

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

comment:4 Changed 2 years ago by Tim Graham <timograham@…>

In 89b31b3:

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

Backport of fd75c8f2b7070774f6e90f408cb5cddf65b8734e from master

comment:5 Changed 2 years ago by Tim Graham <timograham@…>

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