From 071c66ee1091be11efebebd129916b170d4ea87e Mon Sep 17 00:00:00 2001 From: Karel Balej Date: Wed, 15 Jan 2025 18:14:39 +0100 Subject: [PATCH] =?UTF-8?q?personalni:=20zm=C4=9Bna=20nastaven=C3=AD=20upo?= =?UTF-8?q?zor=C5=88ov=C3=A1n=C3=AD=20u=20existuj=C3=ADc=C3=ADch=20=C5=99e?= =?UTF-8?q?=C5=A1itel=C5=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- personalni/migrations/0018_resitel_upozorneni.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/personalni/migrations/0018_resitel_upozorneni.py b/personalni/migrations/0018_resitel_upozorneni.py index 64aede5f..1b5b7280 100644 --- a/personalni/migrations/0018_resitel_upozorneni.py +++ b/personalni/migrations/0018_resitel_upozorneni.py @@ -2,6 +2,9 @@ from django.db import migrations, models +def vypnuti_upozorneni_na_opravy_reseni(apps, schema_editor): + Resitel = apps.get_model('personalni', 'Resitel') + Resitel.objects.update(upozorneni=False) class Migration(migrations.Migration): @@ -15,4 +18,5 @@ class Migration(migrations.Migration): name='upozorneni', field=models.BooleanField(default=True, verbose_name='zasílat upozornění na změnu zpětné vazby k řešení emailem'), ), + migrations.RunPython(vypnuti_upozorneni_na_opravy_reseni), ]