From 272767d6e7af308b7bbfb12166993720bdb746b5 Mon Sep 17 00:00:00 2001 From: Claudio Morale Date: Tue, 19 Jun 2012 13:32:41 +0000 Subject: [PATCH] =?UTF-8?q?Acrescentar=20campo=20sexo=20para=20funcion?= =?UTF-8?q?=C3=A1rio=20e=20campo=20num=5Fparlamentares=20para=20casa=20leg?= =?UTF-8?q?islativa?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/apps/casas/models.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sigi/apps/casas/models.py b/sigi/apps/casas/models.py index b198576..c5d3808 100644 --- a/sigi/apps/casas/models.py +++ b/sigi/apps/casas/models.py @@ -35,6 +35,7 @@ class CasaLegislativa(models.Model): tipo = models.ForeignKey(TipoCasaLegislativa, verbose_name="Tipo") cnpj = models.CharField('CNPJ', max_length=32, blank=True) observacoes = models.TextField(u'observações', blank=True) + num_parlamentares = models.PositiveIntegerField('Número de parlamentares') # Informações de contato logradouro = models.CharField( @@ -120,6 +121,7 @@ class Funcionario(models.Model): """ Modelo para registrar contatos vinculados às Casas Legislativas """ + SETOR_CHOICES = [ ("presidente","Presidente"), ("contato_interlegis","Contato Interlegis"), @@ -132,9 +134,15 @@ class Funcionario(models.Model): ("gestao","Gestão"), ("outros","Outros"), ] + SEXO_CHOICES = [ + ("M", "Masculino"), + ("F", "Feminino") + ] + casa_legislativa = models.ForeignKey(CasaLegislativa) nome = models.CharField('nome completo', max_length=60, blank=True) nome.alphabetic_filter = True + sexo = models.CharField(max_length=1, choices=SEXO_CHOICES, default="M") nota = models.CharField(max_length=70, null=True, blank=True) email = models.EmailField('e-mail', null=True, blank=True) telefones = generic.GenericRelation('contatos.Telefone')