mirror of https://github.com/interlegis/sapl.git
Gustavo
3 years ago
4 changed files with 59 additions and 0 deletions
@ -0,0 +1,18 @@ |
|||
# Generated by Django 2.2.24 on 2022-02-24 15:45 |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('sessao', '0059_sessaoplenaria_data_ultima_atualizacao'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='tiposessaoplenaria', |
|||
name='tipo_numeracao', |
|||
field=models.PositiveIntegerField(choices=[(1, 'Quinzenal'), (2, 'Mensal'), (5, 'Semestral'), (10, 'Anual'), (11, 'Sessão Legislativa'), (12, 'Legislatura'), (99, 'Numeração Única')], default=11, verbose_name='Tipo de Numeração'), |
|||
), |
|||
] |
@ -0,0 +1,18 @@ |
|||
# Generated by Django 2.2.24 on 2022-04-05 16:07 |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('sessao', '0060_auto_20220224_1245'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AddField( |
|||
model_name='sessaoplenaria', |
|||
name='publicar_pauta', |
|||
field=models.BooleanField(blank=True, default=False, null=True, verbose_name='Publicar Pauta?'), |
|||
), |
|||
] |
@ -0,0 +1,17 @@ |
|||
# 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), |
|||
] |
Loading…
Reference in new issue