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

@@ -80,7 +80,7 @@ class CustomFieldChoiceSetViewSet(NetBoxModelViewSet):
# Paginate data
if page := self.paginate_queryset(choices):
data = [
{'value': c[0], 'label': c[1]} for c in page
{'id': c[0], 'display': c[1]} for c in page
]
return self.get_paginated_response(data)