Not incrementing the primary key

Copper Contributor

Hello, everyone. I am using MS SQL server with django framework. I inspect the DB and got the models files. I have made a primary key and it is an auto-increment field. When I try to post data it throw error you cannot insert null in uniqid.

uniqid = models.BigAutoField(primary_key=True, null=False)

Screenshot 2022-02-28 at 12.28.29 PM.png

I attached the DB table.
Is anyone know how to do it. Thanks


0 Replies