Answer the question
In order to leave comments, you need to log in
How to serialize two related models in Django?
There are two models Disaese_history and Patient. Every case history has a patient.
How to serialize the patient model when serializing a case history?
stories_department = serializers.serialize('json', Disaese_history.objects.filter(exit_day=None))
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question