I have a list of objects generated after some function, i want it to be saved in django model i tried query set operation
mylist = [(u'england', u'1', u'cde', u'IMG1', u'CP1'), (u'england', u'1', u'cde', u'IMG2', u'CP1'), (u'england', u'2', u'abc', u'IMG1', u'CP1')]
class Mymodel(models.Model):
batch_id = models.AutoField(primary_key=True)
batch_cola = models.CharField(max_length=100)
batch_colb = models.CharField(max_length=100)
batch_colc = models.CharField(max_length=100)
batch_cold = models.CharField(max_length=100)
batch_cole = models.CharField(max_length=100)