1👍
✅
Like the error says, you can’t convert a many-to-many into a foreign key. You’ll have to split this into two migrations: first, remove the original field completely and run makemigrations to create the DROP COLUMN call; then, add the foreign key and run makemigrations again to create the ADD COLUMN.
Source:stackexchange.com