Note on migrations with Django

I experienced a problem when trying to rename a model field where the field was included in a multiple unique_together option. Eg, changing this to this gives an error like this django.db.models.fields.FieldDoesNotExist: Ad has no field named u’ad_group’ The solution was to do two separate migrations. First remove the unique_together option, then migrate. Next, change […]