From 5106b041758a9a1eedeea3bcdd8668e7b614ed49 Mon Sep 17 00:00:00 2001 From: Disco DeDisco Date: Thu, 19 Feb 2026 20:50:31 -0500 Subject: [PATCH] updated User creation method in functional_tests.management.commands.create_session --- src/functional_tests/management/commands/create_session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functional_tests/management/commands/create_session.py b/src/functional_tests/management/commands/create_session.py index 78c082d..b6cd48c 100644 --- a/src/functional_tests/management/commands/create_session.py +++ b/src/functional_tests/management/commands/create_session.py @@ -20,7 +20,7 @@ class Command(BaseCommand): self.stdout.write(session_key) def create_pre_authenticated_session(email): - user = User.objects.create(email=email) + user = User.objects.create_user(email=email) session = SessionStore() session[SESSION_KEY] = str(user.pk) # Convert UUID to string for JSON serialization session[BACKEND_SESSION_KEY] = "apps.lyric.authentication.PasswordlessAuthenticationBackend"