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 | 7d235c4d2bdffe729608d928b48dc8f647ebe54d (patch) | |
tree | b20ee23a82f76fc63ee99417007d57f310d34ceb /ishtar_common/wizards.py | |
parent | 9992bf5614ed22b99f0b341b3d4252c8f0c88e06 (diff) | |
download | Ishtar-7d235c4d2bdffe729608d928b48dc8f647ebe54d.tar.bz2 Ishtar-7d235c4d2bdffe729608d928b48dc8f647ebe54d.zip |
Migration to Django 2.2 - fixes
- rel -> remote_field
- to -> model
- default initialization for historical models
Diffstat (limited to 'ishtar_common/wizards.py')
-rw-r--r-- | ishtar_common/wizards.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py index 2d000e423..1aafef6e7 100644 --- a/ishtar_common/wizards.py +++ b/ishtar_common/wizards.py @@ -744,7 +744,7 @@ class Wizard(IshtarWizard): m = getattr(self.model, dependant_item) if callable(m): m = m() - model = m.field.rel.to + model = m.field.remote_field.model c_dct = other_objs[dependant_item].copy() if issubclass(model, models.BaseHistorizedItem): c_dct["history_modifier"] = self.request.user |