From afca07c92a8b04916594693e176a071b33d9ac11 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 15 Jul 2023 12:28:30 -0400 Subject: [PATCH] it should be MASTODON_ALLOW_ANY_SITE --- boofilsic/settings.py | 2 +- users/migrations/0005_add_dedicated_username.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/boofilsic/settings.py b/boofilsic/settings.py index 928c0660..39f6e6fd 100644 --- a/boofilsic/settings.py +++ b/boofilsic/settings.py @@ -259,7 +259,7 @@ SYNC_FILE_PATH_ROOT = "sync/" EXPORT_FILE_PATH_ROOT = "export/" # Allow user to login via any Mastodon/Pleroma sites -ALLOW_ANY_SITE = False +MASTODON_ALLOW_ANY_SITE = False # Allow user to create account with email (and link to Mastodon account later) ALLOW_EMAIL_ONLY_ACCOUNT = False diff --git a/users/migrations/0005_add_dedicated_username.py b/users/migrations/0005_add_dedicated_username.py index 5b23f2d9..72f8a3fa 100644 --- a/users/migrations/0005_add_dedicated_username.py +++ b/users/migrations/0005_add_dedicated_username.py @@ -17,7 +17,7 @@ def move_username(apps, schema_editor): def clear_username(apps, schema_editor): User = apps.get_model("users", "User") for u in User.objects.all(): - u.username = None if settings.ALLOW_ANY_SITE else u.mastodon_username + u.username = None if settings.MASTODON_ALLOW_ANY_SITE else u.mastodon_username u.save()