diff --git a/tests/authentication/test_authentication.py b/tests/authentication/test_authentication.py index d771aaf8b..b64c05de8 100644 --- a/tests/authentication/test_authentication.py +++ b/tests/authentication/test_authentication.py @@ -219,8 +219,8 @@ class SessionAuthTests(TestCase): Ensure POSTing form over session authentication with CSRF token succeeds. Regression test for #6088 """ - # Remove this shim when dropping support for Django 2.2. - if django.VERSION < (3, 0): + # Remove this shim when dropping support for Django 3.0. + if django.VERSION < (3, 1): from django.middleware.csrf import _get_new_csrf_token else: from django.middleware.csrf import (