|
@ -6,9 +6,10 @@ def fix_all(apps, schema_editor): |
|
|
ContentType = apps.get_model('contenttypes', 'ContentType') |
|
|
ContentType = apps.get_model('contenttypes', 'ContentType') |
|
|
for modelname in [ |
|
|
for modelname in [ |
|
|
# Problémy: |
|
|
# Problémy: |
|
|
'Konfera', 'Tema', 'Uloha', 'Clanek' |
|
|
'Tema', 'Uloha', 'Clanek', |
|
|
|
|
|
# Konfery neexistuji, takze ani neni co nastavovat... |
|
|
# TreeNody: |
|
|
# 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) |
|
|
Model = apps.get_model('seminar', modelname) |
|
|
ct = ContentType.objects.get_for_model(Model) |
|
|
ct = ContentType.objects.get_for_model(Model) |
|
|