Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use six.string_types for python3

  • Loading branch information...
commit 088f68252d1f3c9e5d51a5ea3ab769397a65859f 1 parent fcd3d4c
@mrj0 mrj0 authored
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:
Please sign in to comment.
Something went wrong with that request. Please try again.