-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Problem when creating/updating ManyToOne nested field if a serializer is using fields = '__all__' #254
Comments
Let’s see a serializer for the model which gives error. |
|
All serializers seems okay, now can I see json data which you're sending when creating |
` |
I looked into it and I found that in |
This looks okay too, but am still not able to reproduce it, maybe it’s a version specific bug, I’ve tried to use |
This could probably be the cause, have you managed to reproduce it?. |
Yes, but I'm not exactly sure why it's happening. I've tried reproducing this issue and I've got this error. Here is the traceback:
Serializers
Request
VersionsDjango==2.2.24 |
Thank you @sommelon for posting the whole error trace back, I think the part causing it is django-restql/django_restql/fields.py Lines 120 to 122 in 273ef58
We forgot to handle a case where the value of serializer_class.Meta.fields is __all__ , so it’s definitely a bug.
|
No problem. |
Yeah, I’ll work on it, if you have an idea of how issue template should look like for this project feel free to open an issue about it, I’ll appreciate the help. |
@yezyilomo I've created the issue #256 |
when try to create nested record; show this error
Field name
_is not valid for model
ModelName.
The text was updated successfully, but these errors were encountered: