mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-18 19:32:24 -06:00
Update object edit template to use fieldsets where possible
This commit is contained in:
@@ -64,6 +64,9 @@ class TenantForm(BootstrapMixin, CustomFieldModelForm):
|
||||
fields = (
|
||||
'name', 'slug', 'group', 'description', 'comments', 'tags',
|
||||
)
|
||||
fieldsets = (
|
||||
('Tenant', ('name', 'slug', 'group', 'description')),
|
||||
)
|
||||
|
||||
|
||||
class TenantCSVForm(CustomFieldModelCSVForm):
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user