From b776a3260da8e9deae0f9eacb962f8113c31df4e Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Tue, 8 Mar 2016 08:45:23 -0300 Subject: [PATCH] Fix qa --- norma/forms.py | 1 - norma/urls.py | 4 ++-- norma/views.py | 7 ++----- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/norma/forms.py b/norma/forms.py index c14fae6cb..de90b6893 100644 --- a/norma/forms.py +++ b/norma/forms.py @@ -3,7 +3,6 @@ from crispy_forms.layout import Fieldset, Layout from django import forms from django.forms import ModelForm from django.utils.safestring import mark_safe -from django.utils.translation import ugettext_lazy as _ import crispy_layout_mixin from crispy_layout_mixin import form_actions diff --git a/norma/urls.py b/norma/urls.py index 888ce6747..2b93767eb 100644 --- a/norma/urls.py +++ b/norma/urls.py @@ -23,7 +23,7 @@ urlpatterns = [ url(r'^norma/(?P[0-9]+)/editar$', NormaEditView.as_view(), name='norma_editar'), url(r'^norma/pesquisa$', - NormaPesquisaView.as_view(), name='norma_pesquisa'), + NormaPesquisaView.as_view(), name='norma_pesquisa'), url(r'^norma/pesquisa-resultado$', - PesquisaNormaListView.as_view(), name='list_pesquisa_norma'), + PesquisaNormaListView.as_view(), name='list_pesquisa_norma'), ] diff --git a/norma/views.py b/norma/views.py index 452485d64..4213cf207 100644 --- a/norma/views.py +++ b/norma/views.py @@ -1,19 +1,16 @@ from datetime import datetime -from re import sub +from django.contrib import messages from django.core.exceptions import ObjectDoesNotExist from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect from django.shortcuts import redirect -from django.utils.html import strip_tags -from django.utils.translation import ugettext_lazy as _ from django.views.generic import CreateView, ListView -from django.views.generic.edit import FormMixin from vanilla.views import GenericView from compilacao.views import IntegracaoTaView from crud import Crud, make_pagination -from materia.models import MateriaLegislativa, TipoMateriaLegislativa +from materia.models import MateriaLegislativa from .forms import NormaJuridicaForm, NormaJuridicaPesquisaForm from .models import (AssuntoNorma, LegislacaoCitada, NormaJuridica,