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

Added bulk import view for circuit types

This commit is contained in:
Jeremy Stretch
2017-10-09 15:52:22 -04:00
parent a38cd449c5
commit 2c9b41db75
4 changed files with 20 additions and 1 deletions

View File

@ -85,6 +85,17 @@ class CircuitTypeForm(BootstrapMixin, forms.ModelForm):
fields = ['name', 'slug']
class CircuitTypeCSVForm(forms.ModelForm):
slug = SlugField()
class Meta:
model = CircuitType
fields = ['name', 'slug']
help_texts = {
'name': 'Name of circuit type',
}
#
# Circuits
#