mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-15 00:02:17 -06:00
Remove unused bulk_create_enabled attr
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
This commit is contained in:
@@ -128,10 +128,6 @@ class NetBoxModelViewSet(
|
|||||||
qs = super().get_queryset()
|
qs = super().get_queryset()
|
||||||
return reapply_model_ordering(qs)
|
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):
|
def get_serializer(self, *args, **kwargs):
|
||||||
# If a list of objects has been provided, initialize the serializer with many=True
|
# If a list of objects has been provided, initialize the serializer with many=True
|
||||||
if isinstance(kwargs.get('data', {}), list):
|
if isinstance(kwargs.get('data', {}), list):
|
||||||
|
|||||||
Reference in New Issue
Block a user