Просмотр исходного кода

Fixes #10791: Permit nullifying VLAN group scope_type via REST API

jeremystretch 3 лет назад
Родитель
Сommit
aaf1ea52b7
2 измененных файлов с 2 добавлено и 0 удалено
  1. 1 0
      docs/release-notes/version-3.3.md
  2. 1 0
      netbox/ipam/api/serializers.py

+ 1 - 0
docs/release-notes/version-3.3.md

@@ -6,6 +6,7 @@
 
 * [#10282](https://github.com/netbox-community/netbox/issues/10282) - Enforce advisory locks when allocating available IP addresses to prevent race conditions
 * [#10770](https://github.com/netbox-community/netbox/issues/10282) - Fix social authentication for new users
+* [#10791](https://github.com/netbox-community/netbox/issues/10791) - Permit nullifying VLAN group `scope_type` via REST API
 * [#10803](https://github.com/netbox-community/netbox/issues/10803) - Fix exception when ordering contacts by number of assignments
 
 ---

+ 1 - 0
netbox/ipam/api/serializers.py

@@ -175,6 +175,7 @@ class VLANGroupSerializer(NetBoxModelSerializer):
         queryset=ContentType.objects.filter(
             model__in=VLANGROUP_SCOPE_TYPES
         ),
+        allow_null=True,
         required=False,
         default=None
     )