From 8a3e0cbf0296734fa340bfd6be527e8444454afb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rog=C3=A9rio=20Fr=C3=A1?= Date: Fri, 20 Jan 2017 12:34:38 -0300 Subject: [PATCH] RANGE_ANOS_COM_EMPTY_LABEL Ano norma (#898) --- sapl/norma/forms.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sapl/norma/forms.py b/sapl/norma/forms.py index 02420adab..260df9ee9 100644 --- a/sapl/norma/forms.py +++ b/sapl/norma/forms.py @@ -17,6 +17,8 @@ from sapl.utils import RANGE_ANOS, RangeWidgetOverride from .models import (AssuntoNorma, NormaJuridica, NormaRelacionada, TipoNormaJuridica) +def ANO_CHOICES(): + return [('', '---------')] + RANGE_ANOS def get_esferas(): return [('E', 'Estadual'),