Skip to content

Commit 83dad6f

Browse files
arthansonjeremystretch
authored andcommitted
15597 add button_class choices to import form
1 parent bb4930b commit 83dad6f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

netbox/extras/forms/bulk_import.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@ class CustomLinkImportForm(CSVModelForm):
116116
queryset=ContentType.objects.with_feature('custom_links'),
117117
help_text=_("One or more assigned object types")
118118
)
119+
button_class = CSVChoiceField(
120+
label=_('button class'),
121+
required=False,
122+
choices=CustomLinkButtonClassChoices,
123+
help_text=_('The class of the first link in a group will be used for the dropdown button')
124+
)
119125

120126
class Meta:
121127
model = CustomLink

0 commit comments

Comments
 (0)