Skip to content

Commit 088f682

Browse files
committed
use six.string_types for python3
1 parent fcd3d4c commit 088f682

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django/db/models/fields/related.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class MyModel(Model):
5555
else:
5656
# Look for an "app.Model" relation
5757

58-
if isinstance(relation, basestring):
58+
if isinstance(relation, six.string_types):
5959
try:
6060
app_label, model_name = relation.split(".")
6161
except ValueError:

0 commit comments

Comments
 (0)