if isinstance(obj, models.Photo):
    return PhotoSerializer(obj, context=self.context).to_representation(obj)
elif isinstance(obj, models.Video):
    return VideoSerializer(obj, context=self.context).to_representation(obj)
return super(GalleryItemModuleSerializer, self).to_representation(obj)
django-rest-framework + django-polymorphic ModelSerialization