How can i use Two Serializers in ListCreateAPIView #8803
Unanswered
shahriar350
asked this question in
Question & Answer
Replies: 2 comments 3 replies
-
you can not use 2 serializer at one View. you should check https://www.django-rest-framework.org/api-guide/relations/#nested-relationships |
Beta Was this translation helpful? Give feedback.
1 reply
-
It is not possible out of the box. But, if you elaborate on your use case, may be we can suggest some workarounds if any @shahriar350 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my API, I want to use two serializers in ListCreateAPIView. How can i use that? One is for Get method and another POST method.
Beta Was this translation helpful? Give feedback.
All reactions