mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #13410: Fix rendering of custom choice fields with large numner of choices
This commit is contained in:
@@ -29,6 +29,8 @@ class DynamicChoiceField(forms.ChoiceField):
|
||||
self.choices = [
|
||||
choice for choice in self.choices if choice[0] == data
|
||||
]
|
||||
else:
|
||||
self.choices = []
|
||||
|
||||
return bound_field
|
||||
|
||||
|
Reference in New Issue
Block a user