class EntityToAlertMap(serializers.ModelSerializer):


    class Meta:
        model = EntityToAlertMap
fields = 'entity', 'distinct_alert', 'entity_alert_relationship_label'
Django serializing model with custom many to many mapping