From 53507cc01c52a102349434ff0c50cb8a303deef4 Mon Sep 17 00:00:00 2001 From: Cesar Carvalho Date: Mon, 21 Jan 2019 17:46:05 -0200 Subject: [PATCH] fix commit #f84ac62 --- sapl/base/forms.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sapl/base/forms.py b/sapl/base/forms.py index c63163801..d603ffc45 100644 --- a/sapl/base/forms.py +++ b/sapl/base/forms.py @@ -706,8 +706,11 @@ class RelatorioAtasFilterSet(django_filters.FilterSet): def ultimo_ano_com_norma(): anos_normas = choice_anos_com_normas() - return anos_normas[0] + if anos_normas: + return anos_normas[0] + return '' + class RelatorioNormasMesFilterSet(django_filters.FilterSet):