mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 00:19:53 +03:00
Fix up test case for Django 3.0
This commit is contained in:
parent
487f98381f
commit
9f415de12c
|
@ -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 (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user