Update organizational models to use custom field forms

This commit is contained in:
Jeremy Stretch
2021-02-26 11:25:23 -05:00
parent 12fbd34962
commit cf78307577
6 changed files with 29 additions and 29 deletions

View File

@@ -15,7 +15,7 @@ from .models import Tenant, TenantGroup
# Tenant groups
#
class TenantGroupForm(BootstrapMixin, forms.ModelForm):
class TenantGroupForm(BootstrapMixin, CustomFieldModelForm):
parent = DynamicModelChoiceField(
queryset=TenantGroup.objects.all(),
required=False
@@ -29,7 +29,7 @@ class TenantGroupForm(BootstrapMixin, forms.ModelForm):
]
class TenantGroupCSVForm(CSVModelForm):
class TenantGroupCSVForm(CustomFieldModelCSVForm):
parent = CSVModelChoiceField(
queryset=TenantGroup.objects.all(),
required=False,