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

is it possible to override put?

Open ajwillo opened this issue 6 years ago • 0 comments

Im trying to bulk upload data using PUT, but am getting keyError ID, this is expected as I do not have the ID in the JSON data.

however there is another unique field in the JSON Data and I could use that to upload, is it possible to do this?

Model:

ID - unique auto increment
PDID - another unique value
NAME
Mobile

JSON [{"Name": "Billy Bob", "Mobile": "015525 58165", "PDID": "PA8AMY1"}, {"Name": "John Smith", "Mobile": "159815588, "PDID": "PQ0FT0P"}]

Thanks

ajwillo avatar Aug 07 '19 11:08 ajwillo