1👍
You can take a look at the py file in the migrations folder and comment out the erroneous remove in the operations list operate.
-2👍
The easiest way to solve this is to remake the database from scratch.
- If you are using SQLite. Delete the file and delete all files from the migration folder and try creating the migration file again.
- If you are using MySQL or PostgreSQL delete all the tables and try again. don’t forget to delete the migration files else this won’t
work.
This problem arises when you had a foreign key and you deleted the column without removing the depending data.
- [Django]-How to get a formatted DateTimeField value outside a Django template?
- [Django]-Ckeditor_uploader Dynamic Image Upload Path
- [Django]-JS: how generate the product array for Google Analytics dataLayer?
- [Django]-How to remove get parameter from url in django view
- [Django]-Django Rest Framework doesn't accept ArrayField POST
Source:stackexchange.com