1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #10231: Add missing serializer annotations

This commit is contained in:
Andreas Nieß
2022-08-31 20:53:39 +02:00
parent ce4d00dc21
commit b11fa53519
3 changed files with 5 additions and 0 deletions

View File

@@ -190,6 +190,7 @@ class VLANGroupSerializer(NetBoxModelSerializer):
]
validators = []
@swagger_serializer_method(serializer_or_field=serializers.JSONField)
def get_scope(self, obj):
if obj.scope_id is None:
return None