1
0
mirror of https://github.com/django/django.git synced 2025-10-25 14:46:09 +00:00

Refs #35530 -- Corrected deprecation message in auth.alogin().

Follow up to ceecd518b1.
This commit is contained in:
Mariusz Felisiak
2025-08-19 20:57:32 +02:00
committed by Sarah Boyce
parent 0b2493a0da
commit b3166e1e15
4 changed files with 10 additions and 10 deletions

View File

@@ -79,7 +79,7 @@ class AsyncAuthTest(TestCase):
),
self.assertWarnsMessage(
RemovedInDjango61Warning,
"Fallback to request.user when user is None will be removed.",
"Fallback to request.auser() when user is None will be removed.",
),
):
await alogin(request, None)
@@ -100,7 +100,7 @@ class AsyncAuthTest(TestCase):
),
self.assertWarnsMessage(
RemovedInDjango61Warning,
"Fallback to request.user when user is None will be removed.",
"Fallback to request.auser() when user is None will be removed.",
),
):
await alogin(request, None)
@@ -116,7 +116,7 @@ class AsyncAuthTest(TestCase):
request.session = await self.client.asession()
with self.assertWarnsMessage(
RemovedInDjango61Warning,
"Fallback to request.user when user is None will be removed.",
"Fallback to request.auser() when user is None will be removed.",
):
await alogin(request, None)
user = await aget_user(request)