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

Fixes #3812: Only preload selected options for API-based select

This commit is contained in:
Saria Hajjar
2020-01-01 15:54:00 +00:00
parent 8a4293a4cc
commit 53625e0dea
3 changed files with 8 additions and 0 deletions

View File

@@ -285,6 +285,8 @@ class APISelect(SelectWithDisabled):
name of the query param and the value if the query param's value.
:param null_option: If true, include the static null option in the selection list.
"""
# Only preload the selected option; new options are dynamically displayed and added via the API
template_name = 'widgets/select_api.html'
def __init__(
self,