Fix issues with ordering and add field_groups

This commit is contained in:
Alex Gittings
2022-03-18 14:58:51 +00:00
parent 8f5b14ec84
commit 50bc0caccf
4 changed files with 25 additions and 5 deletions

View File

@@ -11,11 +11,11 @@ __all__ = (
'ContactAssignmentFilterSet',
'ContactFilterSet',
'ContactGroupFilterSet',
'ContactModelFilterSet',
'ContactRoleFilterSet',
'TenancyFilterSet',
'TenantFilterSet',
'TenantGroupFilterSet',
'ContactModelFilterSet'
)
@@ -165,7 +165,7 @@ class TenantFilterSet(PrimaryModelFilterSet, ContactModelFilterSet):
class Meta:
model = Tenant
fields = ['id', 'name', 'slug']
fields = ['id', 'name', 'slug', 'description']
def search(self, queryset, name, value):
if not value.strip():