Django model instances primary keys do not reset to 1 after all instances are deleted
I have been working on an offline version of my Django web app and have frequently deleted model instances for a certain ModelX. I have done this from the admin page and have experienced no issues. The model only has two fields: name and order and no other relationships to other models. New instances are given the next available pk which makes sense, and when I have deleted all instances, adding a new instance yields a pk=1, which I expect. Moving the code online to my actual database I noticed that this is not the case. I needed to change the model instances so I deleted them all but to my