mirror of
https://github.com/netbox-community/netbox.git
synced 2026-04-10 19:27:05 +02:00
Closes #4807: Add bulk edit ability for device bay templates
This commit is contained in:
@@ -1486,15 +1486,17 @@ class DeviceBayTemplateCreateForm(ComponentTemplateCreateForm):
|
||||
)
|
||||
|
||||
|
||||
# TODO: DeviceBayTemplate has no fields suitable for bulk-editing yet
|
||||
# class DeviceBayTemplateBulkEditForm(BootstrapMixin, BulkEditForm):
|
||||
# pk = forms.ModelMultipleChoiceField(
|
||||
# queryset=FrontPortTemplate.objects.all(),
|
||||
# widget=forms.MultipleHiddenInput()
|
||||
# )
|
||||
#
|
||||
# class Meta:
|
||||
# nullable_fields = ()
|
||||
class DeviceBayTemplateBulkEditForm(BootstrapMixin, BulkEditForm):
|
||||
pk = forms.ModelMultipleChoiceField(
|
||||
queryset=DeviceBayTemplate.objects.all(),
|
||||
widget=forms.MultipleHiddenInput()
|
||||
)
|
||||
description = forms.CharField(
|
||||
required=False
|
||||
)
|
||||
|
||||
class Meta:
|
||||
nullable_fields = ('description',)
|
||||
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user