[Answer]-"No such column" error during deletion of a record in Django admin

1👍

It seems that AutoFields using the sqllite3 backend don’t increment properly. Is there any reason you are including the line id = models.AutoField(primary_key=True) ? If you leave it out, an auto-increment primary key field will be automatically added and is more likely to be correctly created. Try deleting that line and creating a new sqllite database file.

Leave a comment