Update object edit template to use fieldsets where possible

This commit is contained in:
Jeremy Stretch
2021-02-25 13:51:48 -05:00
parent 2a517cde9f
commit 42e82f0ead
27 changed files with 75 additions and 659 deletions

View File

@@ -64,6 +64,9 @@ class TenantForm(BootstrapMixin, CustomFieldModelForm):
fields = (
'name', 'slug', 'group', 'description', 'comments', 'tags',
)
fieldsets = (
('Tenant', ('name', 'slug', 'group', 'description')),
)
class TenantCSVForm(CustomFieldModelCSVForm):

View File

@@ -87,7 +87,6 @@ class TenantView(generic.ObjectView):
class TenantEditView(generic.ObjectEditView):
queryset = Tenant.objects.all()
model_form = forms.TenantForm
template_name = 'tenancy/tenant_edit.html'
class TenantDeleteView(generic.ObjectDeleteView):