use new django.url.reverse query kwarg

This commit is contained in:
Thomas Girod
2025-04-11 14:50:25 +02:00
parent 805ffc498f
commit ff220e67c1
6 changed files with 26 additions and 17 deletions

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