22 lines
709 B
Python
22 lines
709 B
Python
# Generated by Django 4.2.16 on 2024-12-03 19:08
|
|
|
|
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):
|
|
|
|
dependencies = [
|
|
('personalni', '0017_odstrel_treenode_post'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='resitel',
|
|
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),
|
|
]
|