How to save a ManyToManyField as a value instead of id code example
Example: How to save a ManyToManyField as a value instead of id
class Symptoms(DynamicSerializer):
class Meta:
model = models.Symptom
fields = ('name',) #< instead of id use other value
class PatientProfiel(DynamicSerializer):
symptoms = SymptSer(many=True) #< it it here
class Meta:
model = MyModel
fields = '__all__'