Permalink
Browse files

use six.string_types for python3

  • Loading branch information...
1 parent fcd3d4c commit 088f68252d1f3c9e5d51a5ea3ab769397a65859f @mrj0 mrj0 committed Nov 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/db/models/fields/related.py
View
2 django/db/models/fields/related.py
@@ -55,7 +55,7 @@ class MyModel(Model):
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:

0 comments on commit 088f682

Please sign in to comment.