summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Hall <dave@etianen.com>2018-02-12 13:20:23 (GMT)
committerGitHub <noreply@github.com>2018-02-12 13:20:23 (GMT)
commitb21fc06891f1495e18a959f9f559052f4d08335f (patch)
tree3e777060c25a865730f3091b335fb417a8e92d95
parente842988f18bcba351e9167b73f728a72182aa17d (diff)
parent927d762daf41a32be37bd056c889e170d6efbb93 (diff)
downloaddjango-watson-b21fc06891f1495e18a959f9f559052f4d08335f.zip
django-watson-b21fc06891f1495e18a959f9f559052f4d08335f.tar.gz
django-watson-b21fc06891f1495e18a959f9f559052f4d08335f.tar.bz2
Merge pull request #236 from zandeez/master
Update foreign key references for Django 2.0.
-rw-r--r--watson/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/watson/models.py b/watson/models.py
index 1dde609..d226726 100644
--- a/watson/models.py
+++ b/watson/models.py
@@ -23,7 +23,7 @@ def has_int_pk(model):
isinstance(pk, (models.IntegerField, models.AutoField)) and
not isinstance(pk, models.BigIntegerField)
) or (
- isinstance(pk, models.ForeignKey) and has_int_pk(pk.rel.to)
+ isinstance(pk, models.ForeignKey) and has_int_pk(pk.remote_field.model)
)
)