From eb2b2f408a1d0a78c4133bf6b2e424837511a814 Mon Sep 17 00:00:00 2001 From: Eduardo Calil Date: Tue, 14 Mar 2017 12:36:43 -0300 Subject: [PATCH] Bug fix --- 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 03f9e87ff..77e0c0418 100644 --- a/sapl/protocoloadm/views.py +++ b/sapl/protocoloadm/views.py @@ -294,7 +294,7 @@ class CriarDocumentoProtocolo(PermissionRequiredMixin, CreateView): doc = {} doc['tipo'] = protocolo.tipo_documento - doc['ano'] = datetime.datetime.now().date().year + doc['ano'] = datetime.now().date().year doc['data'] = protocolo.data doc['numero_protocolo'] = protocolo.numero doc['assunto'] = protocolo.assunto_ementa