diff --git a/base/views.py b/base/views.py index f5650d0b5..1950ce99a 100644 --- a/base/views.py +++ b/base/views.py @@ -64,4 +64,4 @@ class CasaLegislativaTableAuxView(FormView): return self.render_to_response({'form': form}) def get_success_url(self): - return reverse('casa_legislativa') + return reverse('base:casa_legislativa') diff --git a/materia/test_materia.py b/materia/test_materia.py index 99b78b6c2..d628856bb 100644 --- a/materia/test_materia.py +++ b/materia/test_materia.py @@ -422,7 +422,7 @@ def test_form_errors_relatoria(client): @pytest.mark.django_db(transaction=False) def test_proposicao_submit(client): - response = client.post(reverse('adicionar_proposicao'), + response = client.post(reverse('materia:adicionar_proposicao'), {'tipo': mommy.make(TipoProposicao, pk=3).pk, 'descricao': 'Teste proposição', 'salvar': 'salvar'}, @@ -438,7 +438,7 @@ def test_proposicao_submit(client): @pytest.mark.django_db(transaction=False) def test_form_errors_proposicao(client): - response = client.post(reverse('adicionar_proposicao'), + response = client.post(reverse('materia:adicionar_proposicao'), {'salvar': 'salvar'}, follow=True) diff --git a/materia/views.py b/materia/views.py index 794aadb5c..35957c0c2 100644 --- a/materia/views.py +++ b/materia/views.py @@ -64,7 +64,7 @@ class FormularioSimplificadoView(CreateView): class FormularioCadastroView(CreateView): template_name = "materia/formulario_cadastro.html" form_class = FormularioCadastroForm - success_url = reverse_lazy('formulario_cadastro') + success_url = reverse_lazy('materia:formulario_cadastro') class MateriaAnexadaView(FormView): @@ -1191,7 +1191,7 @@ class MateriaLegislativaPesquisaView(FormView): template_name = 'materia/pesquisa_materia.html' def get_success_url(self): - return reverse('pesquisar_materia') + return reverse('materia:pesquisar_materia') def get(self, request, *args, **kwargs): form = MateriaLegislativaPesquisaForm() diff --git a/norma/test_norma.py b/norma/test_norma.py index 3743a7159..4731995b2 100644 --- a/norma/test_norma.py +++ b/norma/test_norma.py @@ -13,7 +13,7 @@ def test_incluir_norma_submit(client): descricao='Teste') # Testa POST - response = client.post(reverse('norma_incluir'), + response = client.post(reverse('norma:norma_incluir'), {'tipo': tipo.pk, 'numero': '1', 'ano': '2016', @@ -33,7 +33,7 @@ def test_incluir_norma_submit(client): @pytest.mark.django_db(transaction=False) def test_incluir_norma_errors(client): - response = client.post(reverse('norma_incluir'), + response = client.post(reverse('norma:norma_incluir'), {'salvar': 'salvar'}, follow=True) diff --git a/parlamentares/views.py b/parlamentares/views.py index 7f171fd2d..4bf61e41d 100644 --- a/parlamentares/views.py +++ b/parlamentares/views.py @@ -286,7 +286,7 @@ class ParlamentaresDependentesEditView(UpdateView): class MesaDiretoraView(FormView): template_name = "mesa_diretora/mesa_diretora.html" - success_url = reverse_lazy('mesa_diretora') + success_url = reverse_lazy('parlamentares:mesa_diretora') # Essa função avisa quando se pode compor uma Mesa Legislativa) def validation(self, request): diff --git a/templates/materia/legislacao_citada.html b/templates/materia/legislacao_citada.html index 8dc2ff49d..9ed99f31f 100644 --- a/templates/materia/legislacao_citada.html +++ b/templates/materia/legislacao_citada.html @@ -20,7 +20,7 @@ {% for l in legislacao %}