1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Converted RackGroups to use utility CBVs

This commit is contained in:
Jeremy Stretch
2016-05-11 13:30:39 -04:00
parent 91a5b2eb5f
commit bacde242aa
3 changed files with 20 additions and 50 deletions

View File

@ -72,6 +72,13 @@ class SiteImportForm(BulkImportForm, BootstrapMixin):
# Rack groups
#
class RackGroupForm(forms.ModelForm, BootstrapMixin):
class Meta:
model = RackGroup
fields = ['site', 'name', 'slug']
class RackGroupBulkDeleteForm(ConfirmationForm):
pk = forms.ModelMultipleChoiceField(queryset=RackGroup.objects.all(), widget=forms.MultipleHiddenInput)