From 87d92f8ee486712366ab83100d3e389e5251cc76 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Fri, 9 Feb 2024 12:59:45 -0500 Subject: [PATCH] Enable passing TomSelect HTML template attibutes on DynamicModelChoiceField --- netbox/utilities/forms/fields/dynamic.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/netbox/utilities/forms/fields/dynamic.py b/netbox/utilities/forms/fields/dynamic.py index eb0dc9b59..f1d30241f 100644 --- a/netbox/utilities/forms/fields/dynamic.py +++ b/netbox/utilities/forms/fields/dynamic.py @@ -64,6 +64,7 @@ class DynamicModelChoiceMixin: null_option: The string used to represent a null selection (if any) disabled_indicator: The name of the field which, if populated, will disable selection of the choice (optional) + option_attrs: A mapping of