Skip to content

Commit

Permalink
Permit TenantType.group to be null
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Feb 19, 2025
1 parent 3abc8f4 commit ad65584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/tenancy/graphql/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

@strawberry_django.type(models.Tenant, fields='__all__', filters=TenantFilter)
class TenantType(NetBoxObjectType):
group: Annotated['TenantGroupType', strawberry.lazy('tenancy.graphql.types')]
group: Annotated['TenantGroupType', strawberry.lazy('tenancy.graphql.types')] | None
contacts: List[Annotated['ContactType', strawberry.lazy('tenancy.graphql.types')]]
asns: List[Annotated['ASNType', strawberry.lazy('ipam.graphql.types')]]
circuits: List[Annotated['CircuitType', strawberry.lazy('circuits.graphql.types')]]
Expand Down

0 comments on commit ad65584

Please sign in to comment.