|
@@ -12,6 +12,7 @@ __all__ = [
|
|
|
'BulkModelViewSet',
|
|
|
'BulkUpdateAPIView',
|
|
|
'ListBulkCreateAPIView',
|
|
|
+ 'ListBulkCreateDestroyAPIView',
|
|
|
'ListBulkCreateUpdateAPIView',
|
|
|
'ListBulkCreateUpdateDestroyAPIView',
|
|
|
'ListCreateBulkUpdateAPIView',
|
|
@@ -110,6 +111,20 @@ class ListBulkCreateUpdateAPIView(mixins.ListModelMixin,
|
|
|
return self.partial_bulk_update(request, *args, **kwargs)
|
|
|
|
|
|
|
|
|
+class ListBulkCreateDestroyAPIView(mixins.ListModelMixin,
|
|
|
+ bulk_mixins.BulkCreateModelMixin,
|
|
|
+ bulk_mixins.BulkDestroyModelMixin,
|
|
|
+ GenericAPIView):
|
|
|
+ def get(self, request, *args, **kwargs):
|
|
|
+ return self.list(request, *args, **kwargs)
|
|
|
+
|
|
|
+ def post(self, request, *args, **kwargs):
|
|
|
+ return self.create(request, *args, **kwargs)
|
|
|
+
|
|
|
+ def delete(self, request, *args, **kwargs):
|
|
|
+ return self.bulk_destroy(request, *args, **kwargs)
|
|
|
+
|
|
|
+
|
|
|
class ListBulkCreateUpdateDestroyAPIView(mixins.ListModelMixin,
|
|
|
bulk_mixins.BulkCreateModelMixin,
|
|
|
bulk_mixins.BulkUpdateModelMixin,
|