Re-apply Black formatting

This commit is contained in:
Adam Goldsmith 2023-09-07 10:56:22 -04:00
parent 08ff37de7d
commit feed128a3b
18 changed files with 3 additions and 22 deletions

View File

@ -4,7 +4,6 @@ from django.db import migrations, models
class Migration(migrations.Migration): class Migration(migrations.Migration):
initial = True initial = True
dependencies = [] dependencies = []

View File

@ -5,7 +5,6 @@ import django.db.models.deletion
class Migration(migrations.Migration): class Migration(migrations.Migration):
initial = True initial = True
dependencies = [] dependencies = []

View File

@ -4,7 +4,6 @@ from django.db import migrations
class Migration(migrations.Migration): class Migration(migrations.Migration):
dependencies = [ dependencies = [
("membershipworks", "0001_initial"), ("membershipworks", "0001_initial"),
] ]

View File

@ -24,11 +24,9 @@ class MemberQuerySet(models.QuerySet):
# TODO: maybe rename to reflect EXISTS? # TODO: maybe rename to reflect EXISTS?
@staticmethod @staticmethod
def has_flag(flag_type: str, flag_name: str): def has_flag(flag_type: str, flag_name: str):
return Exists(Flag.objects.filter( return Exists(
type=flag_type, Flag.objects.filter(type=flag_type, name=flag_name, members=OuterRef("pk"))
name=flag_name, )
members=OuterRef("pk")
))
# TODO: it should be fairly easy to reduce the number of EXISTS by # TODO: it should be fairly easy to reduce the number of EXISTS by
# merging the ORed flags # merging the ORed flags

View File

@ -5,7 +5,6 @@ import django.db.models.deletion
class Migration(migrations.Migration): class Migration(migrations.Migration):
initial = True initial = True
dependencies = [ dependencies = [

View File

@ -19,7 +19,6 @@ def migrate_certification_version_forward(apps, schema_editor):
class Migration(migrations.Migration): class Migration(migrations.Migration):
dependencies = [ dependencies = [
("paperwork", "0001_initial"), ("paperwork", "0001_initial"),
] ]

View File

@ -4,7 +4,6 @@ from django.db import migrations, models
class Migration(migrations.Migration): class Migration(migrations.Migration):
dependencies = [ dependencies = [
("paperwork", "0002_add_certification_version_model"), ("paperwork", "0002_add_certification_version_model"),
] ]

View File

@ -4,7 +4,6 @@ from django.db import migrations
class Migration(migrations.Migration): class Migration(migrations.Migration):
dependencies = [ dependencies = [
("paperwork", "0003_alter_certificationversion_id"), ("paperwork", "0003_alter_certificationversion_id"),
] ]

View File

@ -4,7 +4,6 @@ from django.db import migrations, models
class Migration(migrations.Migration): class Migration(migrations.Migration):
dependencies = [ dependencies = [
("paperwork", "0004_alter_certification_options"), ("paperwork", "0004_alter_certification_options"),
] ]

View File

@ -17,7 +17,6 @@ def link_departments(apps, schema_editor):
class Migration(migrations.Migration): class Migration(migrations.Migration):
dependencies = [ dependencies = [
("membershipworks", "0001_initial"), ("membershipworks", "0001_initial"),
("paperwork", "0005_certificationdefinition_mailing_list"), ("paperwork", "0005_certificationdefinition_mailing_list"),

View File

@ -4,7 +4,6 @@ from django.db import migrations, models
class Migration(migrations.Migration): class Migration(migrations.Migration):
dependencies = [ dependencies = [
("paperwork", "0006_department_alter_certificationdefinition_department"), ("paperwork", "0006_department_alter_certificationdefinition_department"),
] ]

View File

@ -4,7 +4,6 @@ from django.db import migrations
class Migration(migrations.Migration): class Migration(migrations.Migration):
dependencies = [ dependencies = [
("paperwork", "0007_department_has_mailing_list"), ("paperwork", "0007_department_has_mailing_list"),
] ]

View File

@ -5,7 +5,6 @@ import django.db.models.deletion
class Migration(migrations.Migration): class Migration(migrations.Migration):
dependencies = [ dependencies = [
("membershipworks", "0002_alter_flag_options"), ("membershipworks", "0002_alter_flag_options"),
("paperwork", "0008_remove_certificationdefinition_mailing_list"), ("paperwork", "0008_remove_certificationdefinition_mailing_list"),

View File

@ -6,7 +6,6 @@ import django.db.models.deletion
class Migration(migrations.Migration): class Migration(migrations.Migration):
initial = True initial = True
dependencies = [ dependencies = [

View File

@ -4,7 +4,6 @@ from django.db import migrations, models
class Migration(migrations.Migration): class Migration(migrations.Migration):
dependencies = [ dependencies = [
("rentals", "0001_initial"), ("rentals", "0001_initial"),
] ]

View File

@ -4,7 +4,6 @@ from django.db import migrations, models
class Migration(migrations.Migration): class Migration(migrations.Migration):
dependencies = [ dependencies = [
("rentals", "0002_lockerinfo_notes"), ("rentals", "0002_lockerinfo_notes"),
] ]

View File

@ -7,7 +7,6 @@ import markdownx.models
class Migration(migrations.Migration): class Migration(migrations.Migration):
initial = True initial = True
dependencies = [ dependencies = [

View File

@ -10,7 +10,6 @@ def slugify_name(apps, schema_editor):
class Migration(migrations.Migration): class Migration(migrations.Migration):
dependencies = [ dependencies = [
("tasks", "0001_initial"), ("tasks", "0001_initial"),
] ]