django-rest-framework-bulk icon indicating copy to clipboard operation
django-rest-framework-bulk copied to clipboard

Django REST Framework bulk CRUD view mixins

Results 48 django-rest-framework-bulk issues
Sort by recently updated
recently updated
newest added

Hi Is this necessary? I recently ran into a circular import issue where drf-bulk imports drf which in turn imports some of our code(via DEFAULT_PAGINATION_CLASS in DRF) and it hid...

The README explains how to use the router as follows: ``` from rest_framework_bulk.routes import BulkRouter class UserViewSet(BulkModelViewSet): model = User def allow_bulk_destroy(self, qs, filtered): """Don't forget to fine-grain this method"""...

I've added `BulkSerializerMixin` to a view set (and set `list_serializer_class` to `BulkListSerializer`), trying to PATCH a single object (which should not touch bulk operations at all), raises this error: `AttributeError:...

Based entirely on DRF's default generator with expanded actions list. Requires yet to be released changes in DRF. Add an example on how to use it with interactive docs. Requires...

The `get_initial` of a serializer normally looks like this: ``` def get_initial(self): if hasattr(self, 'initial_data'):   return OrderedDict([   (field_name, field.get_value(self.initial_data))   for field_name, field in self.fields.items()   if (field.get_value(self.initial_data) is not empty) and  ...

``` def login_view(request): next = request.GET.get('next') title = 'Вхід' form = UserLoginForms(request.POST or None) if form.is_valid(): username = form.changed_data.get('username') password = form.changed_data.get('password') user = authenticate(username=username, password=password) login(request, user) if next:...

This is mostly same approach as in https://github.com/miki725/django-rest-framework-bulk/pull/43 but doesn't do excess database queries. This doesn't cover cases when unique constraint violated within incoming payload. In this case `IntegrityError` is...

BulkSerializerMixin.to_internal_values(...) does this: ``` python request_method = getattr(getattr(self.context.get('view'), 'request'), 'method', '') ``` So, given the serializer code: ``` python from rest_framework import serializers from rest_framework_bulk import BulkListSerializer, BulkSerializerMixin class SimpleSerializer(BulkSerializerMixin,...

I've tried creating a very simple API endpoint following the README: ``` from django.db import models from rest_framework import serializers from rest_framework_bulk import BulkListSerializer, BulkSerializerMixin, ListBulkCreateUpdateAPIView class Foo(models.Model): name =...

http://pythonwheels.com/ Right now, only the `tar.gz` file is being distributed on PyPI for [djangorestframework-bulk](https://pypi.python.org/pypi/djangorestframework-bulk), which isn't _that much_ of an issue, but it does add some time to installing the...