From 29c13bf9d4bb20ba24136681383675153fdf0a1c Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Wed, 30 Nov 2016 14:43:49 -0200 Subject: [PATCH] HOT-FIX: conserta numero__max__ --- sapl/protocoloadm/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/protocoloadm/views.py b/sapl/protocoloadm/views.py index d217005c2..37c4608f8 100644 --- a/sapl/protocoloadm/views.py +++ b/sapl/protocoloadm/views.py @@ -222,7 +222,7 @@ class ProtocoloDocumentoView(PermissionRequiredMixin, f.tipo_processo = '0' # TODO validar o significado f.anulado = False - f.numero = (numero['numero__max'] + 1) if numero__max else 1 + f.numero = (numero['numero__max'] + 1) if numero else 1 f.ano = datetime.now().year f.data = datetime.now().strftime('%Y-%m-%d') f.hora = datetime.now().strftime('%H:%M')