Browse Source

Fix #880

pull/886/head
Eduardo Calil 8 years ago
parent
commit
53d98a65aa
  1. 4
      sapl/parlamentares/models.py
  2. 2
      sapl/settings.py
  3. 3
      sapl/templates/protocoloadm/layouts.yaml

4
sapl/parlamentares/models.py

@ -86,7 +86,7 @@ class Coligacao(models.Model):
def __str__(self):
return self.nome
def get_logo_media_path(instance, subpath, filename):
return './sapl/partidos/%s/%s/%s' % (instance, subpath, filename)
@ -94,7 +94,7 @@ def get_logo_media_path(instance, subpath, filename):
def logo_upload_path(instance, filename):
return get_logo_media_path(instance, 'logo', filename)
class Partido(models.Model):
sigla = models.CharField(max_length=9, verbose_name=_('Sigla'))
nome = models.CharField(max_length=50, verbose_name=_('Nome'))

2
sapl/settings.py

@ -270,4 +270,4 @@ def excepthook(*args):
logging.getLogger(BASE_DIR.name).error(
'Uncaught exception:', exc_info=args)
sys.excepthook = excepthook
# sys.excepthook = excepthook

3
sapl/templates/protocoloadm/layouts.yaml

@ -16,7 +16,8 @@ DocumentoAdministrativo:
DocumentoAcessorioAdministrativo:
{% trans 'Documento Acessório' %}:
- tipo nome data
- documento tipo
- nome data
- autor
- arquivo
- assunto

Loading…
Cancel
Save