Registry / devops / djangorestframework-bulk

djangorestframework-bulk

JSON →
library0.2.1pypypiunverified

Provides mixins and view sets for bulk create, update, and delete operations in Django REST Framework. Current version 0.2.1 is in maintenance mode; no active development.

pip install djangorestframework-bulk
INSTALL
IMPORT
SIG · DJANGORESTFRAMEWOR
D
djangorestframework-bulk
devopspythonv0.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

BulkModelViewSet
from rest_framework_bulk import BulkModelViewSet
from rest_framework_bulk import BulkModelViewSet

Basic viewset supporting bulk create, update, and delete

from rest_framework_bulk import BulkModelViewSet from myapp.models import MyModel from myapp.serializers import MySerializer class MyModelViewSet(BulkModelViewSet): queryset = MyModel.objects.all() serializer_class = MySerializer def allow_bulk_destroy(self, request, *args, **kwargs): return True
Debug
Known issues
deprecatedLibrary is in maintenance mode and may not be compatible with newer DRF versions (3.12+). Consider using drf-bulk or implementing bulk operations manually.
fix
Monitor DRF compatibility; for recent DRF, use drf-bulk or custom views.
affects: >=0.2.1
gotchaBulk update expects a list of dicts with 'id' field. Missing 'id' causes errors.
fix
Always include the primary key field in bulk update payloads, e.g., [{'id': 1, 'field': 'value'}]
affects: all
breakingBulk delete requires overriding allow_bulk_destroy() to return True. By default it returns False.
fix
Add method: def allow_bulk_destroy(self, request, *args, **kwargs): return True
affects: all
Upgrade
Version history
0.2.1latest on PyPI · released Apr 26, 2015
Audit
Dependencies
djangorestframeworkrequiredCore dependency for DRF functionality
DjangooptionalRequired by DRF
Agent activity
15 hits · last 30 days
node
14
Resources
djangorestframework-bulk — pip install djangorestframework-bulk · libregistry