diff --git a/netbox/ipam/graphql/types.py b/netbox/ipam/graphql/types.py index 0563683f1..9b3becc17 100644 --- a/netbox/ipam/graphql/types.py +++ b/netbox/ipam/graphql/types.py @@ -291,7 +291,7 @@ class VLANTranslationPolicyType(NetBoxObjectType): filters=VLANTranslationRuleFilter ) class VLANTranslationRuleType(NetBoxObjectType): - policy: Annotated["VLANTranslationPolicyType", strawberry.lazy('ipam.graphql.types')] + policy: Annotated["VLANTranslationPolicyType", strawberry.lazy('ipam.graphql.types')] | None @strawberry_django.type( diff --git a/netbox/ipam/models/vlans.py b/netbox/ipam/models/vlans.py index 56c7b7a81..dbc3a9a78 100644 --- a/netbox/ipam/models/vlans.py +++ b/netbox/ipam/models/vlans.py @@ -331,7 +331,8 @@ class VLANTranslationRule(NetBoxModel): ) def __str__(self): - return f'{self.local_vid} -> {self.remote_vid} ({self.policy})' + return f'{self.local_vid} -> {self.remote_vid}' + # return f'{self.local_vid} -> {self.remote_vid} ({self.policy})' def to_objectchange(self, action): objectchange = super().to_objectchange(action)