Browse Source

Fix qa

pull/258/head
Eduardo Edson Batista Cordeiro Alves 9 years ago
parent
commit
89bf92dcd5
  1. 6
      materia/forms.py
  2. 2
      materia/views.py
  3. 2
      protocoloadm/views.py
  4. 1
      sapl/utils.py

6
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')]

2
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

2
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 _

1
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 = '''
<div class="col-xs-12">
Autor: <span id="nome_autor"></span>

Loading…
Cancel
Save