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

Add display_field kwarg to DynamicModelChoiceMixin

This commit is contained in:
Jeremy Stretch
2020-08-11 17:00:28 -04:00
parent 2c64d45c69
commit fdc43f8279
5 changed files with 40 additions and 45 deletions

View File

@ -413,9 +413,9 @@ class ObjectChangeFilterForm(BootstrapMixin, forms.Form):
user = DynamicModelMultipleChoiceField(
queryset=User.objects.all(),
required=False,
display_field='username',
widget=APISelectMultiple(
api_url='/api/users/users/',
display_field='username'
)
)
changed_object_type = forms.ModelChoiceField(