Django 1.8.4 makemigrations CreateModel changes field's order
问题 We've just switched to Django 1.8.4 (from 1.6, so first time using migrations), and we've noticed an issue when using the makemigrations command. The issue happens when creating a new model that contains Foreign Keys. The command generates a migration file with the field order changed: it sets all the FKs last, and reorganizes them by alphabetical order. Here's an example : class AnotherRandomModel(models.Model): attr1 = models.FloatField() class AnotherRandomModel2(models.Model): attr1 =