Solution – 1
Remove pyc files from your migrations folder.
Solution – 2
Need to remove that reference from testBolt.0001_initial by editing migration file.
Solution – 3
-
Remove the new changes from the models and run
python manage.py migrate --fake -
Now again modify your models with new changes
-
Run
python manage.py makemigrations -
And then again run
python manage.py migrate