From ab39d5819fb64075e9c7ad47e6ea95dccdd2ddda Mon Sep 17 00:00:00 2001 From: Leandro Roberto Date: Tue, 27 Aug 2019 13:23:28 -0300 Subject: [PATCH] HOT-FIX: corrige erro apontado pelo travis --- sapl/materia/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sapl/materia/models.py b/sapl/materia/models.py index fd71acf4f..b641377de 100644 --- a/sapl/materia/models.py +++ b/sapl/materia/models.py @@ -560,7 +560,8 @@ class DocumentoAcessorio(models.Model): return _('%(tipo)s - %(nome)s de %(data)s por %(autor)s') % { 'tipo': self.tipo, 'nome': self.nome, - 'data': formats.date_format(self.data, "SHORT_DATE_FORMAT"), + 'data': formats.date_format( + self.data, "SHORT_DATE_FORMAT") if self.data else '', 'autor': self.autor} def delete(self, using=None, keep_parents=False):