It worked for me. I thank my colleague for sharing this knowledge after searching the Internet for many hours.
Start your DB shell
python manage.py dbshell
Use the database you want. If you donโt know, run Show Databases
mysql>use <database_name>;
Get all migrations under your application
mysql> select * from django_migrations where app='<app>';
You will see an output with identifiers next to all migrations. Look at the migration you want to drop. Say id 361
mysql> delete from django_migrations where id=361;
source share