Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
If the default .create method on ModelSerializer fails with TypeError then it'll typically be because it's passed an incorrect parameter to the MyModel.objects.create() method. Eg.
TypeError("'%s' is an invalid keyword argument for this function" % list(kwargs))
We should highlight this type of issue to users, and make it more obvious & easy to resolve.
The text was updated successfully, but these errors were encountered:
Example case where this can happen... user creates a non-model field on the ModelSerializer class.
Sorry, something went wrong.
No branches or pull requests