From 53d98a65aae0523b89233952e1cdd27143ab6700 Mon Sep 17 00:00:00 2001 From: Eduardo Calil Date: Thu, 22 Dec 2016 13:59:22 -0200 Subject: [PATCH] Fix #880 --- sapl/parlamentares/models.py | 4 ++-- sapl/settings.py | 2 +- sapl/templates/protocoloadm/layouts.yaml | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/sapl/parlamentares/models.py b/sapl/parlamentares/models.py index ea8c972c9..34b46673c 100644 --- a/sapl/parlamentares/models.py +++ b/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')) diff --git a/sapl/settings.py b/sapl/settings.py index bcf61fd56..9a072211d 100644 --- a/sapl/settings.py +++ b/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 diff --git a/sapl/templates/protocoloadm/layouts.yaml b/sapl/templates/protocoloadm/layouts.yaml index 907d3174d..ef3727839 100644 --- a/sapl/templates/protocoloadm/layouts.yaml +++ b/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