mirror of https://github.com/interlegis/sapl.git
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.
17 lines
519 B
17 lines
519 B
# Generated by Django 2.2.24 on 2022-04-05 16:07
|
|
|
|
from django.db import migrations
|
|
|
|
def publicar_pauta_true_sessoes_existentes(apps, schema_editor):
|
|
SessaoPlenaria = apps.get_model('sessao', 'SessaoPlenaria')
|
|
SessaoPlenaria.objects.filter(publicar_pauta=False).update(publicar_pauta=True)
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('sessao', '0061_sessaoplenaria_publicar_pauta'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.RunPython(publicar_pauta_true_sessoes_existentes),
|
|
]
|
|
|