-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
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? Sign in to your account
More helpful error message when default .create
fails.
#2013
Labels
Milestone
Comments
Example case where this can happen... user creates a non-model field on the |
This was referenced Mar 9, 2017
This was referenced Oct 16, 2017
This was referenced Nov 6, 2017
This was referenced Nov 14, 2017
This was referenced Dec 10, 2017
This was referenced Dec 20, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If the default
.create
method onModelSerializer
fails withTypeError
then it'll typically be because it's passed an incorrect parameter to theMyModel.objects.create()
method. Eg.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: