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/wizards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ishtar_common/wizards.py') 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 -- cgit v1.2.3