File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 6
6
import types
7
7
8
8
from django .db .models .query import QuerySet
9
- from django .utils .encoding import force_unicode
9
+ from django .utils .encoding import force_text
10
10
from django .utils .translation import ugettext as _
11
11
12
12
# Python 2.3 compatibility
@@ -26,7 +26,7 @@ def parse_tag_input(input):
26
26
if not input :
27
27
return []
28
28
29
- input = force_unicode (input )
29
+ input = force_text (input )
30
30
31
31
# Special case - if there are no commas or double quotes in the
32
32
# input, we don't *do* a recall... I mean, we know we only need to
@@ -179,7 +179,7 @@ def get_tag_list(tags):
179
179
contents .add ('int' )
180
180
if len (contents ) == 1 :
181
181
if 'string' in contents :
182
- return Tag .objects .filter (name__in = [force_unicode (tag ) \
182
+ return Tag .objects .filter (name__in = [force_text (tag ) \
183
183
for tag in tags ])
184
184
elif 'tag' in contents :
185
185
return tags
You can’t perform that action at this time.
0 commit comments