Refs #21231 -- Corrected parse_qsl() fallback.

An oversight in fd209f62f1.
This commit is contained in:
Tim Graham 2020-09-07 00:25:56 -04:00 committed by GitHub
parent d2d08c8cf6
commit 83dea65ed6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ from .multipartparser import parse_header
# detect whether the max_num_fields argument is available as this security fix # detect whether the max_num_fields argument is available as this security fix
# was backported to Python 3.6.8 and 3.7.2, and may also have been applied by # was backported to Python 3.6.8 and 3.7.2, and may also have been applied by
# downstream package maintainers to other versions in their repositories. # downstream package maintainers to other versions in their repositories.
if func_supports_parameter(parse_qsl, 'max_num_fields'): if not func_supports_parameter(parse_qsl, 'max_num_fields'):
from django.utils.http import parse_qsl from django.utils.http import parse_qsl