Revert nullability

This commit is contained in:
Brian Tiemann 2024-10-22 11:54:39 -04:00
parent b90829197e
commit 24caa3bf1f
2 changed files with 3 additions and 2 deletions

View File

@ -291,7 +291,7 @@ class VLANTranslationPolicyType(NetBoxObjectType):
filters=VLANTranslationRuleFilter filters=VLANTranslationRuleFilter
) )
class VLANTranslationRuleType(NetBoxObjectType): class VLANTranslationRuleType(NetBoxObjectType):
policy: Annotated["VLANTranslationPolicyType", strawberry.lazy('ipam.graphql.types')] policy: Annotated["VLANTranslationPolicyType", strawberry.lazy('ipam.graphql.types')] | None
@strawberry_django.type( @strawberry_django.type(

View File

@ -331,7 +331,8 @@ class VLANTranslationRule(NetBoxModel):
) )
def __str__(self): 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): def to_objectchange(self, action):
objectchange = super().to_objectchange(action) objectchange = super().to_objectchange(action)