From 92bde8eb5aecbae2eeb6fdd1394fe2b435e86c39 Mon Sep 17 00:00:00 2001 From: LeandroJatai Date: Mon, 15 Aug 2022 15:16:07 -0300 Subject: [PATCH] fix: corrige choice de correspondencia --- .../migrations/0068_auto_20220815_1515.py | 18 ++++++++++++++++++ sapl/sessao/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 sapl/sessao/migrations/0068_auto_20220815_1515.py diff --git a/sapl/sessao/migrations/0068_auto_20220815_1515.py b/sapl/sessao/migrations/0068_auto_20220815_1515.py new file mode 100644 index 000000000..1bb635850 --- /dev/null +++ b/sapl/sessao/migrations/0068_auto_20220815_1515.py @@ -0,0 +1,18 @@ +# Generated by Django 2.2.28 on 2022-08-15 18:15 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('sessao', '0067_auto_20220813_2233'), + ] + + operations = [ + migrations.AlterField( + model_name='correspondencia', + name='tipo', + field=models.PositiveIntegerField(choices=[(1, 'Recebida'), (2, 'Enviada'), (3, 'Interna')], default=1, verbose_name='Tipo da CorrespondĂȘncia'), + ), + ] diff --git a/sapl/sessao/models.py b/sapl/sessao/models.py index 129703fe4..5ca0a2d0a 100644 --- a/sapl/sessao/models.py +++ b/sapl/sessao/models.py @@ -1042,7 +1042,7 @@ class Correspondencia(models.Model): TIPO_CHOICES = Choices( (1, 'recebida', 'Recebida'), (2, 'enviada', 'Enviada'), - (2, 'interna', 'Interna'), + (3, 'interna', 'Interna'), ) sessao_plenaria = models.ForeignKey(SessaoPlenaria,