I am new to Django.I have two models, Model A
and a new Model B
class A:
firstname=models.CharField(max_length=20,blank=True,null=True)
email = models.EmailField(max_length=30,blank=True,null=True)
I have to migrate all the data from A to B in such that a way that primary key of a entry in Model A will be same in Model B. i.e
b.id = a.id
where a and b are instance of A and B respectively.
but after this when i save a new instance the id generated is 5L, 6L etc. instead of incrementing the prmiary key of the last object created. Is there any way to fix this ?? I am using django 1.3 with postgresql 9.2.