1
0
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:
Jeremy Stretch
2023-08-08 09:32:56 -04:00
parent 36072f17a9
commit f255fe507d
3 changed files with 21 additions and 12 deletions

View File

@@ -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