mirror of https://github.com/interlegis/sapl.git
Browse Source
* Adicionado campo publicar pauta na sessao * Alterado pesquisa da pauta usando publicar_pauta * Status tramitassao pauta consertado * Data_hora_sessao adicionado com formato datetimepull/3545/head
Gustavo274
3 years ago
committed by
GitHub
6 changed files with 82 additions and 6 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,20 @@ |
|||
# Generated by Django 2.2.24 on 2022-04-05 16:07 |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
from sapl.utils import YES_NO_CHOICES |
|||
|
|||
|
|||
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, choices=YES_NO_CHOICES, 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