use six.string_types for python3

This commit is contained in:
Mike Johnson 2012-11-04 14:16:32 -08:00
parent fcd3d4c68f
commit 088f68252d
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ def add_lazy_relation(cls, field, relation, operation):
else:
# Look for an "app.Model" relation
if isinstance(relation, basestring):
if isinstance(relation, six.string_types):
try:
app_label, model_name = relation.split(".")
except ValueError: