Browse Source

Add mixin de permissões na view multiplas autorias

pull/1374/merge
LeandroRoberto 7 years ago
parent
commit
9290eab51d
  1. 4
      sapl/materia/views.py

4
sapl/materia/views.py

@ -37,7 +37,6 @@ from sapl.materia.forms import (AnexadaForm, ConfirmarProposicaoForm,
LegislacaoCitadaForm, AutoriaForm, ProposicaoForm, LegislacaoCitadaForm, AutoriaForm, ProposicaoForm,
TipoProposicaoForm, TramitacaoForm, TipoProposicaoForm, TramitacaoForm,
TramitacaoUpdateForm, AutoriaMultiCreateForm) TramitacaoUpdateForm, AutoriaMultiCreateForm)
from sapl.norma.models import LegislacaoCitada from sapl.norma.models import LegislacaoCitada
from sapl.protocoloadm.models import Protocolo from sapl.protocoloadm.models import Protocolo
from sapl.utils import (TURNO_TRAMITACAO_CHOICES, YES_NO_CHOICES, autor_label, from sapl.utils import (TURNO_TRAMITACAO_CHOICES, YES_NO_CHOICES, autor_label,
@ -1113,7 +1112,8 @@ class AutoriaCrud(MasterDetailCrud):
return initial return initial
class AutoriaMultiCreateView(FormView): class AutoriaMultiCreateView(PermissionRequiredForAppCrudMixin, FormView):
app_label = sapl.materia.apps.AppConfig.label
form_class = AutoriaMultiCreateForm form_class = AutoriaMultiCreateForm
template_name = 'materia/autoria_multicreate_form.html' template_name = 'materia/autoria_multicreate_form.html'

Loading…
Cancel
Save