Answer the question
In order to leave comments, you need to log in
How to supplement the serialized object with data?
I have a model, a serializer and a viewset. As I understand it, in order to get a serialized object, I need some method in the viewset, the question is: what is it? Or tell me how to supplement the serialized object with data?
Answer the question
In order to leave comments, you need to log in
What do you use when implementing the API? Django REST framework?
If so, you can use https://www.django-rest-framework.org/api-guide/fi...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question