Skip to content Skip to sidebar Skip to footer

Django Incorrectly Expecting Id Column

I'm working with an existing SQL database in Django. These tables for some reason were never given primary keys so I'm just going through and assigning them ones. In one of these m

Solution 1:

You could fake a migration only including removing the "id" field using the --fake option when migrating, so django thinks that it had deleted the id field when really it never existed.


Post a Comment for "Django Incorrectly Expecting Id Column"