Re:Django Rest Framework general model serializer
by lazerscience on Friday January 30, 2015 @12:27PM
(#8973092)
There's not a general solution to serializing child objects, it totally depends on the use case and the number of children. So for example if you have a lot of child objects it might not even make sense to include theirs ids, but have a seperate (maybe nested) resource to retrieve them. On the other hand if there are only few children you might want to include them in their parent resource.
[ Parent
| on HN ]
There are no comments on this comment yet.