Fix up test case for Django 3.0

This commit is contained in:
Tom Christie 2022-09-21 14:26:00 +01:00
parent 487f98381f
commit 9f415de12c

View File

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