[Answered ]-How do I set up a model to use an AutoField with a legacy database in Python?

2👍

The DB is responsible for managing the value of the ID. If you want to use AutoField, you have to change the column in the DB to use that. Django is not responsible for managing the generated ID

Leave a comment