From 53f5badad97d0a0e361c5900e2a5b4c89b2cbeef Mon Sep 17 00:00:00 2001 From: Claudio Morale Date: Wed, 15 Aug 2012 15:56:29 +0000 Subject: [PATCH] =?UTF-8?q?casas.Funcionario:=20tornar=20o=20campo=20Nome?= =?UTF-8?q?=20obrigat=C3=B3rio=20para=20evitar=20registros=20em=20branco.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/apps/casas/models.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sigi/apps/casas/models.py b/sigi/apps/casas/models.py index c5d3808..a2775b9 100644 --- a/sigi/apps/casas/models.py +++ b/sigi/apps/casas/models.py @@ -4,6 +4,9 @@ from django.contrib.contenttypes import generic from sigi.apps.parlamentares.models import Parlamentar from sigi.apps.utils import SearchField from datetime import datetime +import random +from unicodedata import normalize +from apps.contatos.models import Municipio class TipoCasaLegislativa(models.Model): """ Modelo para representar o tipo da Casa Legislativa @@ -140,7 +143,7 @@ class Funcionario(models.Model): ] casa_legislativa = models.ForeignKey(CasaLegislativa) - nome = models.CharField('nome completo', max_length=60, blank=True) + nome = models.CharField('nome completo', max_length=60, blank=False) 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)