mirror of https://github.com/django/django.git
use six.string_types for python3
This commit is contained in:
parent
fcd3d4c68f
commit
088f68252d
|
@ -55,7 +55,7 @@ def add_lazy_relation(cls, field, relation, operation):
|
||||||
else:
|
else:
|
||||||
# Look for an "app.Model" relation
|
# Look for an "app.Model" relation
|
||||||
|
|
||||||
if isinstance(relation, basestring):
|
if isinstance(relation, six.string_types):
|
||||||
try:
|
try:
|
||||||
app_label, model_name = relation.split(".")
|
app_label, model_name = relation.split(".")
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
|
Loading…
Reference in New Issue