N
N
NikClik2018-12-14 13:18:02
Django
NikClik, 2018-12-14 13:18:02

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

1 answer(s)
A
Andrey Leontiev, 2018-12-21
@Andruwwwka

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 question

Ask a Question

731 491 924 answers to any question