From ec2fc0e18a490634a2da97a16ac94725c3acdc32 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 16 Sep 2021 10:29:22 +0200 Subject: Migration to Django 2.2 - fixes - rel -> remote_field - to -> model - default initialization for historical models --- ishtar_common/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ishtar_common/tests.py') 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: -- cgit v1.2.3