<filename>netbox/tenancy/graphql/types.py
from tenancy import filtersets, models
from netbox.graphql.types import ObjectType, TaggedObjectType

__all__ = (
    'TenantType',
    'TenantGroupType',
)


class TenantType(ObjectType):

    class Meta:
        model = models.Tenant
        fields = '__all__'
        filterset_class = filtersets.TenantFilterSet


class TenantGroupType(TaggedObjectType):

    class Meta:
        model = models.TenantGroup
        fields = '__all__'
        filterset_class = filtersets.TenantGroupFilterSet

<filename>netbox/tenancy/graphql/types.py
from tenancy import filtersets, models
from netbox.graphql.types import ObjectType, TaggedObjectType

__all__ = (
    'TenantType',
    'TenantGroupType',
)


class TenantType(ObjectType):

    class Meta:
        model = models.Tenant
        fields = '__all__'
        filterset_class = filtersets.TenantFilterSet


class TenantGroupType(TaggedObjectType):

    class Meta:
        model = models.TenantGroup
        fields = '__all__'
        filterset_class = filtersets.TenantGroupFilterSet
