Is there any possible way to override the sync method for PUT response and exclude the id field from db, and remaining the same? I am using the Django REST framework for APIs; while trying to PUT, I’m getting:
{"field_errors": "id": ["This field does not exist."],}
I think if I override sync and exclude the id field for PUT, my problem will be solved, but I don’t know how to do it.
1 Answer