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

Create or update view?

Open asafge opened this issue 11 years ago • 4 comments

Hi Is there a way to have a list of items, and have them created or updated based on the existence of a PK?

Thanks

asafge avatar Apr 02 '14 08:04 asafge

I dont think so at the moment but will look into it sometime. Current busy at work.

This will mainly depend on how Serializer works. Maybe it supports this and maybe not. If you find a fix, you are welcome to submit a pull request.

miki725 avatar Apr 02 '14 13:04 miki725

did you had by any chance to take a look at this? I was really busy at work so did not had a chance to look at anything...

miki725 avatar Jun 12 '14 01:06 miki725

Haven't had the chance either. Currently I'm just using two bulk requests, one using POST and another using PUT.

asafge avatar Jun 12 '14 12:06 asafge

Hi,

I'm also interested by the functionality, is there a known workaround for this?

Thank you

julienfabre avatar Oct 24 '16 17:10 julienfabre