Skip to content

Commit 98a830a

Browse files
committed
Apply BootstrapMixin to ComponentForm
1 parent ed2231e commit 98a830a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

netbox/dcim/forms/bulk_create.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# Device components
2424
#
2525

26-
class DeviceBulkAddComponentForm(BootstrapMixin, CustomFieldsMixin, ComponentForm):
26+
class DeviceBulkAddComponentForm(CustomFieldsMixin, ComponentForm):
2727
pk = forms.ModelMultipleChoiceField(
2828
queryset=Device.objects.all(),
2929
widget=forms.MultipleHiddenInput()

netbox/dcim/forms/object_create.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
)
3636

3737

38-
class ComponentForm(forms.Form):
38+
class ComponentForm(BootstrapMixin, forms.Form):
3939
"""
4040
Subclass this form when facilitating the creation of one or more device component or component templates based on
4141
a name pattern.
@@ -142,7 +142,7 @@ def save(self, *args, **kwargs):
142142
# Component templates
143143
#
144144

145-
class ComponentTemplateCreateForm(BootstrapMixin, ComponentForm):
145+
class ComponentTemplateCreateForm(ComponentForm):
146146
"""
147147
Base form for the creation of device component templates (subclassed from ComponentTemplateModel).
148148
"""
@@ -335,7 +335,7 @@ class DeviceBayTemplateCreateForm(ComponentTemplateCreateForm):
335335
# Device components
336336
#
337337

338-
class ComponentCreateForm(BootstrapMixin, CustomFieldsMixin, ComponentForm):
338+
class ComponentCreateForm(CustomFieldsMixin, ComponentForm):
339339
"""
340340
Base form for the creation of device components (models subclassed from ComponentModel).
341341
"""

0 commit comments

Comments
 (0)