auto_created = True not working

I have been trying to connect Mysql based table via interface from models.py.
Although I mentioned auto_created = True, under class Meta, Django is still
trying to search for id column…

(1054, “Unknown column ‘table_name.id’ in ‘field list’”)

In my case, DB table does consider primary key as an inbuilt auto incremental setup for id attribute since it’s not explicitly defined in table schema.

I see nothing in the docs regarding a model Meta attribute named auto_created.

Please post the model that you’re trying to use, and explain the situation where you’re getting this error.