django multiple forms with formsets
I have a model: class HospitalDoctor(models.Model): hospital = models.ForeignKey(Hospital) full_name = models.CharField(max_length=100, unique=True) expertization = models.CharField(max_length=50) nmc_no = models.CharField(max_length=20) timings = models.ManyToManyField('Timing', related_name='shift_timing') appointment = models.IntegerField(default=0) def __unicode__(self): return self.full_name class Timing(models.Model): hospital = models.ForeignKey(Hospital) doctor = models.ForeignKey(HospitalDoctor) day = models.CharField(max_length=20) mng_start = models.IntegerField() mng_end = models