From 9f415de12c9f48c6a5ec93f82180f05a70311fd7 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Wed, 21 Sep 2022 14:26:00 +0100 Subject: [PATCH] Fix up test case for Django 3.0 --- tests/authentication/test_authentication.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 (