From e1a12bbb0d2840d22bb501d4d2890deb4a0d200a Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Tue, 13 Mar 2018 15:42:19 -0300 Subject: [PATCH] Fix #1753 --- sapl/materia/views.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sapl/materia/views.py b/sapl/materia/views.py index 31ce86c43..5be89a672 100644 --- a/sapl/materia/views.py +++ b/sapl/materia/views.py @@ -59,7 +59,7 @@ from .forms import (AcessorioEmLoteFilterSet, AcompanhamentoMateriaForm, ReceberProposicaoForm, RelatoriaForm, TramitacaoEmLoteFilterSet, filtra_tramitacao_destino, filtra_tramitacao_destino_and_status, - filtra_tramitacao_status) + filtra_tramitacao_status, UnidadeTramitacaoForm) from .models import (AcompanhamentoMateria, Anexada, AssuntoMateria, Autoria, DespachoInicial, DocumentoAcessorio, MateriaAssunto, MateriaLegislativa, Numeracao, Orgao, Origem, Proposicao, @@ -613,6 +613,12 @@ class UnidadeTramitacaoCrud(CrudAux): row[1], row[2] = ('', ''), ('', '') return context + class UpdateView(Crud.UpdateView): + form_class = UnidadeTramitacaoForm + + class CreateView(Crud.CreateView): + form_class = UnidadeTramitacaoForm + class ProposicaoCrud(Crud): model = Proposicao