From 4a3f7adbee9a64a1ca9734a5cbac0f305ea44d0c Mon Sep 17 00:00:00 2001 From: Luca Date: Mon, 8 May 2023 00:01:27 +0200 Subject: [PATCH] Reformat migrations using black --- .../migrations/0002_fallbackassignment.py | 32 +++++++++++++++---- .../0002_calendar_needs_fallback.py | 7 ++-- .../migrations/0002_delete_teambackup.py | 5 ++- 3 files changed, 30 insertions(+), 14 deletions(-) diff --git a/shiftregister/fallback/migrations/0002_fallbackassignment.py b/shiftregister/fallback/migrations/0002_fallbackassignment.py index 1b69e37..bc3b8ce 100644 --- a/shiftregister/fallback/migrations/0002_fallbackassignment.py +++ b/shiftregister/fallback/migrations/0002_fallbackassignment.py @@ -5,19 +5,37 @@ import django.db.models.deletion class Migration(migrations.Migration): - dependencies = [ - ('app', '0011_room_description'), - ('fallback', '0001_initial'), + ("app", "0011_room_description"), + ("fallback", "0001_initial"), ] operations = [ migrations.CreateModel( - name='FallbackAssignment', + name="FallbackAssignment", fields=[ - ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('shift', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.shift')), - ('team_member', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='fallback.teammember')), + ( + "id", + models.BigAutoField( + auto_created=True, + primary_key=True, + serialize=False, + verbose_name="ID", + ), + ), + ( + "shift", + models.ForeignKey( + on_delete=django.db.models.deletion.CASCADE, to="app.shift" + ), + ), + ( + "team_member", + models.ForeignKey( + on_delete=django.db.models.deletion.CASCADE, + to="fallback.teammember", + ), + ), ], ), ] diff --git a/shiftregister/importer/migrations/0002_calendar_needs_fallback.py b/shiftregister/importer/migrations/0002_calendar_needs_fallback.py index 516e901..5d7da5b 100644 --- a/shiftregister/importer/migrations/0002_calendar_needs_fallback.py +++ b/shiftregister/importer/migrations/0002_calendar_needs_fallback.py @@ -4,15 +4,14 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ - ('importer', '0001_initial'), + ("importer", "0001_initial"), ] operations = [ migrations.AddField( - model_name='calendar', - name='needs_fallback', + model_name="calendar", + name="needs_fallback", field=models.BooleanField(default=False), ), ] diff --git a/shiftregister/signage/migrations/0002_delete_teambackup.py b/shiftregister/signage/migrations/0002_delete_teambackup.py index e5c0f77..4f24a8d 100644 --- a/shiftregister/signage/migrations/0002_delete_teambackup.py +++ b/shiftregister/signage/migrations/0002_delete_teambackup.py @@ -4,13 +4,12 @@ from django.db import migrations class Migration(migrations.Migration): - dependencies = [ - ('signage', '0001_initial'), + ("signage", "0001_initial"), ] operations = [ migrations.DeleteModel( - name='TeamBackup', + name="TeamBackup", ), ]