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

Added CBVs for Platforms

This commit is contained in:
Jeremy Stretch
2016-05-16 11:54:17 -04:00
parent 4007b40eac
commit a07aa69321
8 changed files with 130 additions and 14 deletions

View File

@@ -291,6 +291,21 @@ class DeviceRoleBulkDeleteForm(ConfirmationForm):
pk = forms.ModelMultipleChoiceField(queryset=DeviceRole.objects.all(), widget=forms.MultipleHiddenInput)
#
# Platforms
#
class PlatformForm(forms.ModelForm, BootstrapMixin):
class Meta:
model = Platform
fields = ['name', 'slug']
class PlatformBulkDeleteForm(ConfirmationForm):
pk = forms.ModelMultipleChoiceField(queryset=Platform.objects.all(), widget=forms.MultipleHiddenInput)
#
# Devices
#