From c4350e23344a8a4d7428a21ff20202ce3a4006aa Mon Sep 17 00:00:00 2001 From: j Date: Tue, 24 Jan 2017 16:19:34 +0100 Subject: [PATCH] py3 --- pandora/document/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandora/document/models.py b/pandora/document/models.py index b2333b26..e9db0b36 100644 --- a/pandora/document/models.py +++ b/pandora/document/models.py @@ -7,7 +7,7 @@ import re from glob import glob import unicodedata -from six import string_types +from six import PY2, string_types from six.moves.urllib.parse import quote, unquote from django.db import models, transaction from django.db.models import Q, Sum, Max @@ -29,6 +29,8 @@ from archive.chunk import save_chunk from . import managers from . import utils +if not PY2: + unicode = str def get_path(f, x): return f.path(x)