I am desperately trying to get along with Django migrations, please help!
This is what I have:
class ReceiptNumber(models.Model):
id = models.AutoField(primary_key=True, unique=True)
This is what I need:
class ReceiptNumber(models.Model):
number = models.IntegerField()
"number" is supposed to have the data that was in id before. While doing this Django creates the default ID field. This one needs to have the same IDs as before in order to not break relations with other tables.
Can you please help? I tried a lot of things to tackle this, but I really don't know how to do it. I need a step by step guide. The logical way would be to just clone the id field, but I don't know how and where to do that.
Thank you so much for your help! Already wasted a few days on this ._.