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 import sapl
from crispy_layout_mixin import form_actions from crispy_layout_mixin import form_actions
from norma.models import LegislacaoCitada, TipoNormaJuridica from norma.models import LegislacaoCitada, TipoNormaJuridica
from parlamentares.models import Parlamentar, Partido
from .models import (AcompanhamentoMateria, Anexada, Autor, Autoria, from .models import (AcompanhamentoMateria, Anexada, Autor, Autoria,
DespachoInicial, DocumentoAcessorio, MateriaLegislativa, DespachoInicial, DocumentoAcessorio, MateriaLegislativa,
Numeracao, Origem, Proposicao, Relatoria, Numeracao, Proposicao, Relatoria, StatusTramitacao,
StatusTramitacao, TipoAutor, TipoMateriaLegislativa, TipoMateriaLegislativa, Tramitacao, UnidadeTramitacao)
Tramitacao, UnidadeTramitacao)
ORDENACAO_MATERIAIS = [(1, 'Crescente'), ORDENACAO_MATERIAIS = [(1, 'Crescente'),
(2, 'Decrescente')] (2, 'Decrescente')]

2
materia/views.py

@ -1,6 +1,5 @@
from datetime import datetime from datetime import datetime
from random import choice from random import choice
from re import sub
from string import ascii_letters, digits from string import ascii_letters, digits
from django.contrib import messages 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.http.response import HttpResponseRedirect
from django.shortcuts import redirect from django.shortcuts import redirect
from django.template import Context, loader from django.template import Context, loader
from django.utils.html import strip_tags
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from django.views.generic import CreateView, FormView, ListView, TemplateView 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 braces.views import FormValidMessageMixin
from django.core.urlresolvers import reverse, reverse_lazy from django.core.urlresolvers import reverse, reverse_lazy
from django.db.models import Q, Max 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.shortcuts import redirect
from django.utils.html import strip_tags from django.utils.html import strip_tags
from django.utils.translation import ugettext_lazy as _ 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.contrib import admin
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
autor_label = ''' autor_label = '''
<div class="col-xs-12"> <div class="col-xs-12">
Autor: <span id="nome_autor"></span> Autor: <span id="nome_autor"></span>

Loading…
Cancel
Save