From 088f68252d1f3c9e5d51a5ea3ab769397a65859f Mon Sep 17 00:00:00 2001 From: Mike Johnson Date: Sun, 4 Nov 2012 14:16:32 -0800 Subject: [PATCH] use six.string_types for python3 --- django/db/models/fields/related.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/models/fields/related.py b/django/db/models/fields/related.py index 5d82c5cbb1..90fe69e23c 100644 --- a/django/db/models/fields/related.py +++ b/django/db/models/fields/related.py @@ -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: