I am working on Django, so I created my table on my models.py. By default when I start registering data, the id, set as primary key, begins with the initial value 1 and increments each time I do a new register.
I have loaded some data in my table, so the final id right now is 185. I run the server and try to add a new register, but I get an error about id duplicity. Django is trying to save the register in id 1.
How do I get it to continue saving the register from id 186 and onwards?
I tried this on my models:
class MyModel(models.Model):
id = models.AutoField(primary_key=True, initial=123)
but it does not recognize the kwarg initial
.