diff --git a/doorcontrol/migrations/0001_initial.py b/doorcontrol/migrations/0001_initial.py index acfb6ab..12e5f76 100644 --- a/doorcontrol/migrations/0001_initial.py +++ b/doorcontrol/migrations/0001_initial.py @@ -4,7 +4,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - initial = True dependencies = [] diff --git a/membershipworks/migrations/0001_initial.py b/membershipworks/migrations/0001_initial.py index b42a987..77dbe53 100644 --- a/membershipworks/migrations/0001_initial.py +++ b/membershipworks/migrations/0001_initial.py @@ -5,7 +5,6 @@ import django.db.models.deletion class Migration(migrations.Migration): - initial = True dependencies = [] diff --git a/membershipworks/migrations/0002_alter_flag_options.py b/membershipworks/migrations/0002_alter_flag_options.py index 0cbef22..8e0fc2a 100644 --- a/membershipworks/migrations/0002_alter_flag_options.py +++ b/membershipworks/migrations/0002_alter_flag_options.py @@ -4,7 +4,6 @@ from django.db import migrations class Migration(migrations.Migration): - dependencies = [ ("membershipworks", "0001_initial"), ] diff --git a/membershipworks/models.py b/membershipworks/models.py index 04907fc..43a2885 100644 --- a/membershipworks/models.py +++ b/membershipworks/models.py @@ -24,11 +24,9 @@ class MemberQuerySet(models.QuerySet): # TODO: maybe rename to reflect EXISTS? @staticmethod def has_flag(flag_type: str, flag_name: str): - return Exists(Flag.objects.filter( - type=flag_type, - name=flag_name, - members=OuterRef("pk") - )) + return Exists( + Flag.objects.filter(type=flag_type, name=flag_name, members=OuterRef("pk")) + ) # TODO: it should be fairly easy to reduce the number of EXISTS by # merging the ORed flags diff --git a/paperwork/migrations/0001_initial.py b/paperwork/migrations/0001_initial.py index 8ca1fca..94c3a7d 100644 --- a/paperwork/migrations/0001_initial.py +++ b/paperwork/migrations/0001_initial.py @@ -5,7 +5,6 @@ import django.db.models.deletion class Migration(migrations.Migration): - initial = True dependencies = [ diff --git a/paperwork/migrations/0002_add_certification_version_model.py b/paperwork/migrations/0002_add_certification_version_model.py index 74c701a..563955a 100644 --- a/paperwork/migrations/0002_add_certification_version_model.py +++ b/paperwork/migrations/0002_add_certification_version_model.py @@ -19,7 +19,6 @@ def migrate_certification_version_forward(apps, schema_editor): class Migration(migrations.Migration): - dependencies = [ ("paperwork", "0001_initial"), ] diff --git a/paperwork/migrations/0003_alter_certificationversion_id.py b/paperwork/migrations/0003_alter_certificationversion_id.py index dac8244..5a62550 100644 --- a/paperwork/migrations/0003_alter_certificationversion_id.py +++ b/paperwork/migrations/0003_alter_certificationversion_id.py @@ -4,7 +4,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ ("paperwork", "0002_add_certification_version_model"), ] diff --git a/paperwork/migrations/0004_alter_certification_options.py b/paperwork/migrations/0004_alter_certification_options.py index f59fabe..a1fd481 100644 --- a/paperwork/migrations/0004_alter_certification_options.py +++ b/paperwork/migrations/0004_alter_certification_options.py @@ -4,7 +4,6 @@ from django.db import migrations class Migration(migrations.Migration): - dependencies = [ ("paperwork", "0003_alter_certificationversion_id"), ] diff --git a/paperwork/migrations/0005_certificationdefinition_mailing_list.py b/paperwork/migrations/0005_certificationdefinition_mailing_list.py index c3c073c..0dfcbd3 100644 --- a/paperwork/migrations/0005_certificationdefinition_mailing_list.py +++ b/paperwork/migrations/0005_certificationdefinition_mailing_list.py @@ -4,7 +4,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ ("paperwork", "0004_alter_certification_options"), ] diff --git a/paperwork/migrations/0006_department_alter_certificationdefinition_department.py b/paperwork/migrations/0006_department_alter_certificationdefinition_department.py index e925e17..a8f3ede 100644 --- a/paperwork/migrations/0006_department_alter_certificationdefinition_department.py +++ b/paperwork/migrations/0006_department_alter_certificationdefinition_department.py @@ -17,7 +17,6 @@ def link_departments(apps, schema_editor): class Migration(migrations.Migration): - dependencies = [ ("membershipworks", "0001_initial"), ("paperwork", "0005_certificationdefinition_mailing_list"), diff --git a/paperwork/migrations/0007_department_has_mailing_list.py b/paperwork/migrations/0007_department_has_mailing_list.py index f87c59b..e399f34 100644 --- a/paperwork/migrations/0007_department_has_mailing_list.py +++ b/paperwork/migrations/0007_department_has_mailing_list.py @@ -4,7 +4,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ ("paperwork", "0006_department_alter_certificationdefinition_department"), ] diff --git a/paperwork/migrations/0008_remove_certificationdefinition_mailing_list.py b/paperwork/migrations/0008_remove_certificationdefinition_mailing_list.py index 3872258..f762f99 100644 --- a/paperwork/migrations/0008_remove_certificationdefinition_mailing_list.py +++ b/paperwork/migrations/0008_remove_certificationdefinition_mailing_list.py @@ -4,7 +4,6 @@ from django.db import migrations class Migration(migrations.Migration): - dependencies = [ ("paperwork", "0007_department_has_mailing_list"), ] diff --git a/paperwork/migrations/0009_rename_department_list_moderator_flag_to_shop_lead_flag.py b/paperwork/migrations/0009_rename_department_list_moderator_flag_to_shop_lead_flag.py index a35238e..ab0025c 100644 --- a/paperwork/migrations/0009_rename_department_list_moderator_flag_to_shop_lead_flag.py +++ b/paperwork/migrations/0009_rename_department_list_moderator_flag_to_shop_lead_flag.py @@ -5,7 +5,6 @@ import django.db.models.deletion class Migration(migrations.Migration): - dependencies = [ ("membershipworks", "0002_alter_flag_options"), ("paperwork", "0008_remove_certificationdefinition_mailing_list"), diff --git a/rentals/migrations/0001_initial.py b/rentals/migrations/0001_initial.py index 7e857b7..1125b2f 100644 --- a/rentals/migrations/0001_initial.py +++ b/rentals/migrations/0001_initial.py @@ -6,7 +6,6 @@ import django.db.models.deletion class Migration(migrations.Migration): - initial = True dependencies = [ diff --git a/rentals/migrations/0002_lockerinfo_notes.py b/rentals/migrations/0002_lockerinfo_notes.py index c6f6395..1107b9d 100644 --- a/rentals/migrations/0002_lockerinfo_notes.py +++ b/rentals/migrations/0002_lockerinfo_notes.py @@ -4,7 +4,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ ("rentals", "0001_initial"), ] diff --git a/rentals/migrations/0003_lockerinfo_reserved_and_more.py b/rentals/migrations/0003_lockerinfo_reserved_and_more.py index 4467cee..768bb17 100644 --- a/rentals/migrations/0003_lockerinfo_reserved_and_more.py +++ b/rentals/migrations/0003_lockerinfo_reserved_and_more.py @@ -4,7 +4,6 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ ("rentals", "0002_lockerinfo_notes"), ] diff --git a/tasks/migrations/0001_initial.py b/tasks/migrations/0001_initial.py index f19b370..3acdbb8 100644 --- a/tasks/migrations/0001_initial.py +++ b/tasks/migrations/0001_initial.py @@ -7,7 +7,6 @@ import markdownx.models class Migration(migrations.Migration): - initial = True dependencies = [ diff --git a/tasks/migrations/0002_tool_slug.py b/tasks/migrations/0002_tool_slug.py index a352013..91055ec 100644 --- a/tasks/migrations/0002_tool_slug.py +++ b/tasks/migrations/0002_tool_slug.py @@ -10,7 +10,6 @@ def slugify_name(apps, schema_editor): class Migration(migrations.Migration): - dependencies = [ ("tasks", "0001_initial"), ]