From 02c69324091bf54c3742ef709709cfe78a8b1c4c Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Sat, 9 Jul 2022 20:10:28 +1000 Subject: [PATCH] lint migration file --- bookwyrm/migrations/0151_user_show_guided_tour.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bookwyrm/migrations/0151_user_show_guided_tour.py b/bookwyrm/migrations/0151_user_show_guided_tour.py index 1f6721361..ebdb46b75 100644 --- a/bookwyrm/migrations/0151_user_show_guided_tour.py +++ b/bookwyrm/migrations/0151_user_show_guided_tour.py @@ -3,11 +3,13 @@ import bookwyrm.models.fields from django.db import migrations + def existing_users_default(apps, schema_editor): db_alias = schema_editor.connection.alias user_model = apps.get_model("bookwyrm", "User") user_model.objects.using(db_alias).filter(local=True).update(show_guided_tour=False) + class Migration(migrations.Migration): dependencies = [ @@ -22,4 +24,3 @@ class Migration(migrations.Migration): ), migrations.RunPython(existing_users_default, migrations.RunPython.noop), ] -