You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
732 B

# Generated by Django 3.2.15 on 2022-10-09 11:04
from django.db import migrations
from seminar.models import Deadline
def vrat_verejnost(apps, schema_editor):
Cislo = apps.get_model('seminar', 'Cislo')
for cislo in Cislo.objects.all():
cislo.verejna_vysledkovka = cislo.deadline_v_cisle.filter(typ=Deadline.TYP_CISLA, verejna_vysledkovka=True).exists()
cislo.save()
class Migration(migrations.Migration):
dependencies = [
('seminar', '0105_odstraneni_deadlinu_cisla'),
]
operations = [
migrations.RunPython(migrations.RunPython.noop, vrat_verejnost),
migrations.RemoveField(
model_name='cislo',
name='verejna_vysledkovka',
),
]