diff --git a/materia/forms.py b/materia/forms.py index c62b736f3..6b260d58e 100644 --- a/materia/forms.py +++ b/materia/forms.py @@ -8,13 +8,11 @@ import crispy_layout_mixin import sapl from crispy_layout_mixin import form_actions from norma.models import LegislacaoCitada, TipoNormaJuridica -from parlamentares.models import Parlamentar, Partido from .models import (AcompanhamentoMateria, Anexada, Autor, Autoria, DespachoInicial, DocumentoAcessorio, MateriaLegislativa, - Numeracao, Origem, Proposicao, Relatoria, - StatusTramitacao, TipoAutor, TipoMateriaLegislativa, - Tramitacao, UnidadeTramitacao) + Numeracao, Proposicao, Relatoria, StatusTramitacao, + TipoMateriaLegislativa, Tramitacao, UnidadeTramitacao) ORDENACAO_MATERIAIS = [(1, 'Crescente'), (2, 'Decrescente')] diff --git a/materia/views.py b/materia/views.py index 40889c04e..078228495 100644 --- a/materia/views.py +++ b/materia/views.py @@ -1,6 +1,5 @@ from datetime import datetime from random import choice -from re import sub from string import ascii_letters, digits from django.contrib import messages @@ -10,7 +9,6 @@ from django.core.urlresolvers import reverse, reverse_lazy from django.http.response import HttpResponseRedirect from django.shortcuts import redirect from django.template import Context, loader -from django.utils.html import strip_tags from django.utils.translation import ugettext_lazy as _ from django.views.generic import CreateView, FormView, ListView, TemplateView diff --git a/protocoloadm/views.py b/protocoloadm/views.py index 6e9b796ec..4f8f1b39a 100644 --- a/protocoloadm/views.py +++ b/protocoloadm/views.py @@ -5,7 +5,7 @@ from re import sub from braces.views import FormValidMessageMixin from django.core.urlresolvers import reverse, reverse_lazy from django.db.models import Q, Max -from django.http import HttpResponse, HttpResponseRedirect, JsonResponse +from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import redirect from django.utils.html import strip_tags from django.utils.translation import ugettext_lazy as _ diff --git a/sapl/utils.py b/sapl/utils.py index 875bfa563..bfa821802 100644 --- a/sapl/utils.py +++ b/sapl/utils.py @@ -5,6 +5,7 @@ from django.apps import apps from django.contrib import admin from django.utils.translation import ugettext_lazy as _ + autor_label = '''
Autor: