Django: Serializing a list of multiple, chained models
问题 Given two different models, with the same parent base class. Is there any way, using either Django Rest Framework Serializers or serpy, to serialize a chained list containing instances of both the child models? Given some example models: class BaseModel(models.Model): created_at = models.DateField() class Meta: abstract = True class ChildModel1(BaseModel): field_one = models.TextField() class ChildModel2(BaseModel): field_two = models.TextField() And an example view: def get(self, request):