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