Added bulk import view for tenant groups

This commit is contained in:
Jeremy Stretch
2017-10-09 15:09:40 -04:00
parent b906030801
commit 6dcab12611
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
#