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()