You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, the problem is obvious, the rest_framework implementation do not use the async/await implementation and due to that, related fields not work
I think the best approach to resolve this issue is to create async fields like ADRF does with serializers
I apologize in advance for any inconsistencies or poor writing, English is not my native language and this is the first time I've tried to contribute to open source projects.
The text was updated successfully, but these errors were encountered:
First, I would like to voluntter to contribute to the project, specific in this issue from start, but before that, lets talk about the issue itself
When we use related fields in serializers, a
django.core.exceptions.SynchronousOnlyOperation
is raisedthat is my serializer who i will use as example (it's from my application)
when i debug the PrimaryKeyRelatedField, the error is raised on
return queryset.get(pk=data)
Well, the problem is obvious, the rest_framework implementation do not use the async/await implementation and due to that, related fields not work
I think the best approach to resolve this issue is to create async fields like ADRF does with serializers
I apologize in advance for any inconsistencies or poor writing, English is not my native language and this is the first time I've tried to contribute to open source projects.
The text was updated successfully, but these errors were encountered: