id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 28366 AlterUniqueTogether and RemoveField on same field lead to migration error Rhaskaas nobody "Consider a model with a field who's used in unique_together.\\ You want to remove this field and so change the uniquet_together Meta at the same time (in models.py). When you do this and apply ""makemigrations"", the resulting migration file is not usable.\\ Indeed, ""migrations.RemoveField"" is use ""before migrations.AlterUniqueTogether"" and lead to ""django.core.exceptions.FieldDoesNotExist"" error.\\ If you change order manualy in migration file (i.e. alter first and remove after) there is no more problem. " Bug closed Migrations 1.11 Normal duplicate AlterUniqueTogether RemoveField migrate makemigrations Unreviewed 0 0 0 0 0 0