class Patient(models.Model):
patient_id = models.CharField(max_length=60)
class PatientVaccineStatus(models.Model):
patient = models.ForeignKey(Patient, related_name="patient_vaccine_status")
class Vaccine(models.Model)
vaccine = models.ForeignKey(PatientVaccineStatus, related_name="vaccine_status")
..................................................................
Is there any way to merged all the tables in a single table of patient.
I successfully merge, PatientVaccineStatus table with Patient table, but Vaccine's table is not merging with the Patient.
how can this hierarchy be merged in a single table.