From a9ca9f69bf38fa4311fbbb3322a6d7c449c98994 Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Mon, 6 Jul 2015 11:31:25 -0300 Subject: [PATCH] Add choice in Parecer --- materia/models.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/materia/models.py b/materia/models.py index 6c99d13ba..4adac1ffa 100644 --- a/materia/models.py +++ b/materia/models.py @@ -227,10 +227,15 @@ class Relatoria(models.Model): class Parecer(models.Model): + ORAL = 'O' + ESCRITA = 'E' + APRESENTACAO_CHOICES = ((ORAL, _(u'Oral')), + (ESCRITA, _(u'Escrita'))) + relatoria = models.ForeignKey(Relatoria) # cod_relatoria materia = models.ForeignKey(MateriaLegislativa) # cod_materia tipo_conclusao = models.CharField(max_length=3, blank=True, null=True) # tip_conclusao - tipo_apresentacao = models.CharField(max_length=1) # tip_apresentacao + tipo_apresentacao = models.CharField(max_length=1, choices=APRESENTACAO_CHOICES) # tip_apresentacao parecer = models.TextField(blank=True, null=True) # txt_parecer class Meta: