From 9290eab51d201085c8191fa3feb40daad615826a Mon Sep 17 00:00:00 2001 From: LeandroRoberto Date: Wed, 9 Aug 2017 13:55:54 -0300 Subject: [PATCH] =?UTF-8?q?Add=20mixin=20de=20permiss=C3=B5es=20na=20view?= =?UTF-8?q?=20multiplas=20autorias?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/materia/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sapl/materia/views.py b/sapl/materia/views.py index a833904c1..58f9862f4 100644 --- a/sapl/materia/views.py +++ b/sapl/materia/views.py @@ -37,7 +37,6 @@ from sapl.materia.forms import (AnexadaForm, ConfirmarProposicaoForm, LegislacaoCitadaForm, AutoriaForm, ProposicaoForm, TipoProposicaoForm, TramitacaoForm, TramitacaoUpdateForm, AutoriaMultiCreateForm) - from sapl.norma.models import LegislacaoCitada from sapl.protocoloadm.models import Protocolo from sapl.utils import (TURNO_TRAMITACAO_CHOICES, YES_NO_CHOICES, autor_label, @@ -1113,7 +1112,8 @@ class AutoriaCrud(MasterDetailCrud): return initial -class AutoriaMultiCreateView(FormView): +class AutoriaMultiCreateView(PermissionRequiredForAppCrudMixin, FormView): + app_label = sapl.materia.apps.AppConfig.label form_class = AutoriaMultiCreateForm template_name = 'materia/autoria_multicreate_form.html'