From a7efe1c691c5c862fa6e749b9a77e53857f613ce Mon Sep 17 00:00:00 2001 From: "Pavel Turinsky (DebianVM @ Zr)" Date: Tue, 8 Jun 2021 22:26:59 +0000 Subject: [PATCH] Mrtvy kod --- seminar/migrations/0058_problem_to_uloha_tema_clanek.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/seminar/migrations/0058_problem_to_uloha_tema_clanek.py b/seminar/migrations/0058_problem_to_uloha_tema_clanek.py index 5694960c..3c947b24 100644 --- a/seminar/migrations/0058_problem_to_uloha_tema_clanek.py +++ b/seminar/migrations/0058_problem_to_uloha_tema_clanek.py @@ -32,13 +32,6 @@ def poskladej_strom(apps, rodic, *texty): tn.succ = textnode tn.save() tn = tn.succ -def problem_to_polymorphic_Problem(apps,schema_editor): - Problem = apps.get_model('seminar', 'Problem') - ContentType = apps.get_model('contenttypes', 'ContentType') - - new_ct = ContentType.objects.get_for_model(Problem) - Problem.objects.filter(polymorphic_ctype__isnull=True).update(polymorphic_ctype=new_ct) - def uloha_to_Uloha(apps,schema_editor): Problem = apps.get_model('seminar', 'Problem')