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: