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 tenant groups

This commit is contained in:
Jeremy Stretch
2017-10-09 15:09:40 -04:00
parent 35c2c8e8de
commit 42e557bd3f
4 changed files with 20 additions and 1 deletions

View File

@ -22,6 +22,17 @@ class TenantGroupForm(BootstrapMixin, forms.ModelForm):
fields = ['name', 'slug']
class TenantGroupCSVForm(forms.ModelForm):
slug = SlugField()
class Meta:
model = TenantGroup
fields = ['name', 'slug']
help_texts = {
'name': 'Group name',
}
#
# Tenants
#