summaryrefslogtreecommitdiff
path: root/ishtar_common/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/tests.py')
-rw-r--r--ishtar_common/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ishtar_common/tests.py b/ishtar_common/tests.py
index fed0ccf58..831eac25d 100644
--- a/ishtar_common/tests.py
+++ b/ishtar_common/tests.py
@@ -1681,7 +1681,7 @@ class AdminGenTypeTest(TestCase):
)
continue
elif isinstance(field, ForeignKey):
- fmodel = field.rel.to
+ fmodel = field.remote_field.model
try:
value = fmodel.objects.get(**{slug_name: row[k]})
except fmodel.DoesNotExist: