1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Drop usage of display_field on DynamicModelChoiceFields

This commit is contained in:
Jeremy Stretch
2021-03-16 10:29:15 -04:00
parent fb48c1f6dd
commit c64f96d65b
6 changed files with 10 additions and 66 deletions

View File

@ -399,7 +399,6 @@ class ObjectChangeFilterForm(BootstrapMixin, forms.Form):
user_id = DynamicModelMultipleChoiceField(
queryset=User.objects.all(),
required=False,
display_field='username',
label=_('User'),
widget=APISelectMultiple(
api_url='/api/users/users/',
@ -408,7 +407,6 @@ class ObjectChangeFilterForm(BootstrapMixin, forms.Form):
changed_object_type_id = DynamicModelMultipleChoiceField(
queryset=ContentType.objects.all(),
required=False,
display_field='display_name',
label=_('Object Type'),
widget=APISelectMultiple(
api_url='/api/extras/content-types/',