Rename base Graphene types to match base models

This commit is contained in:
jeremystretch
2021-08-03 14:14:36 -04:00
parent ea86321da8
commit 1518a460d5
6 changed files with 85 additions and 52 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
from tenancy import filtersets, models
from netbox.graphql.types import ObjectType, PrimaryObjectType
from netbox.graphql.types import OrganizationalObjectType, PrimaryObjectType
__all__ = (
'TenantType',
@@ -15,7 +15,7 @@ class TenantType(PrimaryObjectType):
filterset_class = filtersets.TenantFilterSet
class TenantGroupType(ObjectType):
class TenantGroupType(OrganizationalObjectType):
class Meta:
model = models.TenantGroup