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

Fix bulk updates with unique together

Open sashasimkin opened this issue 7 years ago • 1 comments

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 raised deep inside django.

sashasimkin avatar Mar 16 '17 14:03 sashasimkin

Also, I see that tests are failing because of reasons not connected to my code. I can fix those, but tell me preferred way where I need to push them. Same PR or different one?

sashasimkin avatar Mar 17 '17 10:03 sashasimkin