Refs #27795 -- Removed force_text() usage in db/models/sql/query.py.

This commit is contained in:
Jon Dufresne 2018-10-08 11:47:01 -07:00 committed by Tim Graham
parent 4ab071f43c
commit 2ba588e773
1 changed files with 1 additions and 2 deletions

View File

@ -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: