mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-30 04:16:24 -06:00
Revert nullability
This commit is contained in:
parent
b90829197e
commit
24caa3bf1f
@ -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(
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user