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

13746 fix available ips API for posting custom-fields (#13889)

This commit is contained in:
Arthur Hanson
2023-10-05 12:53:57 -07:00
committed by GitHub
parent bbb133019d
commit d03859b27b

View File

@@ -289,7 +289,7 @@ class AvailableObjectsView(ObjectValidationMixin, APIView):
)
# Prepare object data for deserialization
requested_objects = self.prep_object_data(serializer.validated_data, available_objects, parent)
requested_objects = self.prep_object_data(requested_objects, available_objects, parent)
# Initialize the serializer with a list or a single object depending on what was requested
serializer_class = get_serializer_for_model(self.queryset.model)