From 7fa3c2f5c268c8db279d911b6e9fe343d71008a4 Mon Sep 17 00:00:00 2001 From: MaM Web user Date: Thu, 1 Jul 2021 03:20:11 +0200 Subject: [PATCH] fix 2 (Pavel) --- seminar/migrations/0095_fix_polymorphism.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/seminar/migrations/0095_fix_polymorphism.py b/seminar/migrations/0095_fix_polymorphism.py index c8fca6f4..bf22c178 100644 --- a/seminar/migrations/0095_fix_polymorphism.py +++ b/seminar/migrations/0095_fix_polymorphism.py @@ -6,9 +6,10 @@ def fix_all(apps, schema_editor): ContentType = apps.get_model('contenttypes', 'ContentType') for modelname in [ # Problémy: - 'Konfera', 'Tema', 'Uloha', 'Clanek' + 'Tema', 'Uloha', 'Clanek', + # Konfery neexistuji, takze ani neni co nastavovat... # TreeNody: - 'RocnikNode', 'CisloNode', 'MezicisloNode', 'TemaVCisleNode', 'OrgTextNode', 'UlohaZadaniNode', 'PohadkaNode', 'UlohaVzorakNode', 'TextNode', 'CastNode', 'ReseniNode' + 'RocnikNode', 'CisloNode', 'MezicisloNode', 'TemaVCisleNode', 'OrgTextNode', 'UlohaZadaniNode', 'PohadkaNode', 'UlohaVzorakNode', 'TextNode', 'CastNode', 'ReseniNode', ]: Model = apps.get_model('seminar', modelname) ct = ContentType.objects.get_for_model(Model)