Closes #5990: Deprecated display_field parameter for custom script ObjectVar and MultiObjectVar fields

This commit is contained in:
Jeremy Stretch
2021-03-16 11:08:34 -04:00
parent fe0d699731
commit 7a212fbf8b
4 changed files with 17 additions and 12 deletions

View File

@@ -276,6 +276,7 @@ class DynamicModelChoiceMixin:
filter = django_filters.ModelChoiceFilter
widget = widgets.APISelect
# TODO: Remove display_field in v2.12
def __init__(self, display_field='display', query_params=None, initial_params=None, null_option=None,
disabled_indicator=None, brief_mode=True, *args, **kwargs):
self.display_field = display_field