mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-18 11:22:25 -06:00
30 lines
753 B
Python
30 lines
753 B
Python
from django import forms
|
|
|
|
from dcim.models import *
|
|
from extras.forms import AddRemoveTagsForm, CustomFieldModelBulkEditForm
|
|
from ipam.models import VLAN
|
|
from utilities.forms import BootstrapMixin, DynamicModelChoiceField
|
|
|
|
__all__ = (
|
|
'WirelessLANBulkEditForm',
|
|
)
|
|
|
|
|
|
class WirelessLANBulkEditForm(BootstrapMixin, AddRemoveTagsForm, CustomFieldModelBulkEditForm):
|
|
pk = forms.ModelMultipleChoiceField(
|
|
queryset=PowerFeed.objects.all(),
|
|
widget=forms.MultipleHiddenInput
|
|
)
|
|
vlan = DynamicModelChoiceField(
|
|
queryset=VLAN.objects.all(),
|
|
required=False,
|
|
)
|
|
description = forms.CharField(
|
|
required=False
|
|
)
|
|
|
|
class Meta:
|
|
nullable_fields = [
|
|
'vlan', 'description',
|
|
]
|