mirror of https://github.com/django/django.git
Refs #27795 -- Removed force_text() usage in db/models/sql/query.py.
This commit is contained in:
parent
4ab071f43c
commit
2ba588e773
|
@ -35,7 +35,6 @@ from django.db.models.sql.datastructures import (
|
||||||
from django.db.models.sql.where import (
|
from django.db.models.sql.where import (
|
||||||
AND, OR, ExtraWhere, NothingNode, WhereNode,
|
AND, OR, ExtraWhere, NothingNode, WhereNode,
|
||||||
)
|
)
|
||||||
from django.utils.encoding import force_text
|
|
||||||
from django.utils.functional import cached_property
|
from django.utils.functional import cached_property
|
||||||
from django.utils.tree import Node
|
from django.utils.tree import Node
|
||||||
|
|
||||||
|
@ -1872,7 +1871,7 @@ class Query:
|
||||||
else:
|
else:
|
||||||
param_iter = iter([])
|
param_iter = iter([])
|
||||||
for name, entry in select.items():
|
for name, entry in select.items():
|
||||||
entry = force_text(entry)
|
entry = str(entry)
|
||||||
entry_params = []
|
entry_params = []
|
||||||
pos = entry.find("%s")
|
pos = entry.find("%s")
|
||||||
while pos != -1:
|
while pos != -1:
|
||||||
|
|
Loading…
Reference in New Issue