Suppose you have a BaseClass and ChildClass1, ChildClass2 with its own fields.
I want to give create a url end point where I can return a list of mixed models with their own fields included.
[
childClass1_obj1,
childClass2_obj2,
childClass1_obj3
]
I have serializers for each type already setup, and would be good to reuse it somewhere, but if that's not possible, I can live with any solution that works.
Return results from multiple models with Django REST Framework talks about similar stuff, but he only serializes the common part of the two.
to_native, but didn't quite get it to work either.