Remove unused bulk_create_enabled attr
Some checks failed
CI / build (20.x, 3.10) (push) Has been cancelled
CI / build (20.x, 3.11) (push) Has been cancelled
CI / build (20.x, 3.12) (push) Has been cancelled

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
This commit is contained in:
Jason Novinger
2025-11-21 16:53:40 -06:00
committed by GitHub
parent cb6cbe214d
commit 5f62aaf4cf

View File

@@ -128,10 +128,6 @@ class NetBoxModelViewSet(
qs = super().get_queryset()
return reapply_model_ordering(qs)
# Declare that this viewset accepts either single objects or arrays for creation
# Refs: #20638
bulk_create_enabled = True
def get_serializer(self, *args, **kwargs):
# If a list of objects has been provided, initialize the serializer with many=True
if isinstance(kwargs.get('data', {}), list):