diff --git a/banquet/migrations/0048_add_dietary_preferences.py b/banquet/migrations/0048_add_dietary_preferences.py index be9b4dad..d0b703cf 100644 --- a/banquet/migrations/0048_add_dietary_preferences.py +++ b/banquet/migrations/0048_add_dietary_preferences.py @@ -7,14 +7,19 @@ class Migration(migrations.Migration): dependencies = [ - ('people', '0014_add_dietary_preferences'), - ('banquet', '0047_has_sent_mail'), + ("people", "0014_add_dietary_preferences"), + ("banquet", "0047_has_sent_mail"), ] operations = [ migrations.AddField( - model_name='participant', - name='dietary_preference', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='people.DietaryPreference'), + model_name="participant", + name="dietary_preference", + field=models.ForeignKey( + blank=True, + null=True, + on_delete=django.db.models.deletion.CASCADE, + to="people.DietaryPreference", + ), ), ] diff --git a/banquet/migrations/0049_change_dietary_preferences.py b/banquet/migrations/0049_change_dietary_preferences.py index b79ef478..dff61986 100644 --- a/banquet/migrations/0049_change_dietary_preferences.py +++ b/banquet/migrations/0049_change_dietary_preferences.py @@ -7,25 +7,44 @@ class Migration(migrations.Migration): dependencies = [ - ('banquet', '0048_add_dietary_preferences'), + ("banquet", "0048_add_dietary_preferences"), ] operations = [ migrations.CreateModel( - name='DietaryPreference', + name="DietaryPreference", fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('name', models.CharField(max_length=255)), - ('order', models.IntegerField(default=0)), - ('banquet', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='banquet.Banquet')), + ( + "id", + models.AutoField( + auto_created=True, + primary_key=True, + serialize=False, + verbose_name="ID", + ), + ), + ("name", models.CharField(max_length=255)), + ("order", models.IntegerField(default=0)), + ( + "banquet", + models.ForeignKey( + on_delete=django.db.models.deletion.CASCADE, + to="banquet.Banquet", + ), + ), ], options={ - 'ordering': ['order', 'name'], + "ordering": ["order", "name"], }, ), migrations.AlterField( - model_name='participant', - name='dietary_preference', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='banquet.DietaryPreference'), + model_name="participant", + name="dietary_preference", + field=models.ForeignKey( + blank=True, + null=True, + on_delete=django.db.models.deletion.CASCADE, + to="banquet.DietaryPreference", + ), ), ] diff --git a/banquet/migrations/0050_change_dietary_preferences.py b/banquet/migrations/0050_change_dietary_preferences.py index f06e18c7..24fca90c 100644 --- a/banquet/migrations/0050_change_dietary_preferences.py +++ b/banquet/migrations/0050_change_dietary_preferences.py @@ -7,13 +7,17 @@ class Migration(migrations.Migration): dependencies = [ - ('banquet', '0049_change_dietary_preferences'), + ("banquet", "0049_change_dietary_preferences"), ] operations = [ migrations.AlterField( - model_name='participant', - name='dietary_preference', - field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='banquet.DietaryPreference'), + model_name="participant", + name="dietary_preference", + field=models.ForeignKey( + null=True, + on_delete=django.db.models.deletion.CASCADE, + to="banquet.DietaryPreference", + ), ), ] diff --git a/people/migrations/0014_add_dietary_preferences.py b/people/migrations/0014_add_dietary_preferences.py index d8445a39..8c787348 100644 --- a/people/migrations/0014_add_dietary_preferences.py +++ b/people/migrations/0014_add_dietary_preferences.py @@ -6,24 +6,32 @@ class Migration(migrations.Migration): dependencies = [ - ('people', '0013_add_armada_email'), + ("people", "0013_add_armada_email"), ] operations = [ migrations.CreateModel( - name='DietaryPreference', + name="DietaryPreference", fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('name', models.CharField(max_length=255)), - ('order', models.IntegerField(default=0)), + ( + "id", + models.AutoField( + auto_created=True, + primary_key=True, + serialize=False, + verbose_name="ID", + ), + ), + ("name", models.CharField(max_length=255)), + ("order", models.IntegerField(default=0)), ], options={ - 'ordering': ['order', 'name'], + "ordering": ["order", "name"], }, ), migrations.AlterField( - model_name='profile', - name='no_dietary_restrictions', + model_name="profile", + name="no_dietary_restrictions", field=models.BooleanField(default=False), ), ] diff --git a/people/migrations/0015_remove_dietary_preferences.py b/people/migrations/0015_remove_dietary_preferences.py index bfc9e3e2..da147c63 100644 --- a/people/migrations/0015_remove_dietary_preferences.py +++ b/people/migrations/0015_remove_dietary_preferences.py @@ -6,11 +6,11 @@ class Migration(migrations.Migration): dependencies = [ - ('people', '0014_add_dietary_preferences'), + ("people", "0014_add_dietary_preferences"), ] operations = [ migrations.DeleteModel( - name='DietaryPreference', + name="DietaryPreference", ), ]