diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-09-16 10:29:22 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-12 12:20:58 +0100 |
commit | ec2fc0e18a490634a2da97a16ac94725c3acdc32 (patch) | |
tree | b20ee23a82f76fc63ee99417007d57f310d34ceb /ishtar_common/tests.py | |
parent | f2f735ed86dd12c37ded45eb0b191b02582c3d08 (diff) | |
download | Ishtar-ec2fc0e18a490634a2da97a16ac94725c3acdc32.tar.bz2 Ishtar-ec2fc0e18a490634a2da97a16ac94725c3acdc32.zip |
Migration to Django 2.2 - fixes
- rel -> remote_field
- to -> model
- default initialization for historical models
Diffstat (limited to 'ishtar_common/tests.py')
-rw-r--r-- | ishtar_common/tests.py | 2 |
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: |