use new django.url.reverse query kwarg

This commit is contained in:
Thomas Girod committed 2025-04-11 14:54:06 +02:00
1 parent 805ffc498f
commit ff220e67c1
6 files changed
+26 -17

No files matched your search

+1 -1
View File
@@ -633,7 +633,7 @@ class TestCounterStats(TestCase):
def test_not_authenticated_access_fail(self):
url = reverse("counter:stats", args=[self.counter.id])
response = self.client.get(url)
assertRedirects(response, reverse("core:login") + f"?next={url}")
assertRedirects(response, reverse("core:login", query={"next": url}))
def test_unauthorized_user_fails(self):
self.client.force_login(baker.make(User))