Browse Source

fix: corrige choice de correspondencia

pull/3596/head
LeandroJatai 2 years ago
parent
commit
92bde8eb5a
  1. 18
      sapl/sessao/migrations/0068_auto_20220815_1515.py
  2. 2
      sapl/sessao/models.py

18
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'),
),
]

2
sapl/sessao/models.py

@ -1042,7 +1042,7 @@ class Correspondencia(models.Model):
TIPO_CHOICES = Choices( TIPO_CHOICES = Choices(
(1, 'recebida', 'Recebida'), (1, 'recebida', 'Recebida'),
(2, 'enviada', 'Enviada'), (2, 'enviada', 'Enviada'),
(2, 'interna', 'Interna'), (3, 'interna', 'Interna'),
) )
sessao_plenaria = models.ForeignKey(SessaoPlenaria, sessao_plenaria = models.ForeignKey(SessaoPlenaria,

Loading…
Cancel
Save