Closed caesarleong closed 3 years ago
What version are you using?.
What version are you using?.
0.11.0, should try the latest?
You should definitely try the latest version, we've fixed a lot of bugs and introduced lots of features since v0.11.0. You can check the release history here https://github.com/yezyilomo/django-restql/releases. The good thing is all changes we have done since v0.11.0 are backward compatible so migration to the latest version(v0.14.0) should be smooth, basically just installing the new version and you will be good to go.
I tested with latest 0.14.0 release, the issue persist. Thanks
Okay, I think you forgot to inherit NestedModelSerializer
your issue is similar to #188
Yes, you are right, I forget to inherit NestedModelSerializer, and the issue gone once I inherit NestedModelSerializer. Close the issue with thankful
When I using PATCH to update a field y in ModelA, field_x will raising a ValueError exception
PATCH action should just ignore the field which is not in the request payload. Right now I have to add the original value of field_x to workaround this issue.