From 365d1a9a324d26e1d160ea99f0ada2dd016f12f4 Mon Sep 17 00:00:00 2001 From: "Pavel \"LEdoian\" Turinsky" Date: Thu, 1 Jul 2021 02:58:49 +0200 Subject: [PATCH] fix --- seminar/migrations/0095_fix_polymorphism.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seminar/migrations/0095_fix_polymorphism.py b/seminar/migrations/0095_fix_polymorphism.py index cba9bda1..c8fca6f4 100644 --- a/seminar/migrations/0095_fix_polymorphism.py +++ b/seminar/migrations/0095_fix_polymorphism.py @@ -12,7 +12,7 @@ def fix_all(apps, schema_editor): ]: Model = apps.get_model('seminar', modelname) ct = ContentType.objects.get_for_model(Model) - Model.objects.update(polymorphic_ctype_id=ct) + Model.objects.update(polymorphic_ctype=ct) class Migration(migrations.Migration):