Browse Source

Corrige ordenacao de imports

pull/202/head
Marcio Mazza 9 years ago
parent
commit
b9f7c2b582
  1. 1
      base/templatetags/menus.py
  2. 2
      comissoes/views.py
  3. 3
      materia/views.py
  4. 2
      norma/views.py
  5. 2
      parlamentares/views.py
  6. 6
      protocoloadm/views.py
  7. 2
      sapl/layout.py
  8. 2
      sessao/views.py

1
base/templatetags/menus.py

@ -3,6 +3,7 @@ import os
import yaml
from django import template
from django.core.urlresolvers import reverse
from sapl.settings import BASE_DIR
register = template.Library()

2
comissoes/views.py

@ -10,10 +10,10 @@ from django.views.generic.edit import FormMixin
from vanilla import GenericView
import sapl
from sapl.layout import form_actions
from materia.models import Tramitacao
from parlamentares.models import Filiacao
from sapl.crud import build_crud
from sapl.layout import form_actions
from .models import (CargoComissao, Comissao, Composicao, Participacao,
Periodo, TipoComissao)

3
materia/views.py

@ -18,12 +18,12 @@ from django.views.generic.edit import FormMixin
from vanilla.views import GenericView
import sapl
from sapl.layout import form_actions
from comissoes.models import Comissao, Composicao
from compilacao.views import IntegracaoTaView
from norma.models import LegislacaoCitada, NormaJuridica, TipoNormaJuridica
from parlamentares.models import Parlamentar, Partido
from sapl.crud import build_crud
from sapl.layout import form_actions
from sessao.models import AcompanharMateria
from .models import (Anexada, Autor, Autoria, DespachoInicial,
@ -33,7 +33,6 @@ from .models import (Anexada, Autor, Autoria, DespachoInicial,
TipoFimRelatoria, TipoMateriaLegislativa, TipoProposicao,
Tramitacao, UnidadeTramitacao)
origem_crud = build_crud(
Origem, 'origem', [

2
norma/views.py

@ -13,10 +13,10 @@ from django.views.generic.edit import FormMixin
from vanilla.views import GenericView
import sapl
from sapl.layout import form_actions
from compilacao.views import IntegracaoTaView
from materia.models import MateriaLegislativa, TipoMateriaLegislativa
from sapl.crud import build_crud
from sapl.layout import form_actions
from .models import (AssuntoNorma, LegislacaoCitada, NormaJuridica,
TipoNormaJuridica)

2
parlamentares/views.py

@ -14,8 +14,8 @@ from django.views.generic.edit import FormMixin
from vanilla import GenericView
import sapl
from sapl.layout import form_actions
from sapl.crud import build_crud
from sapl.layout import form_actions
from .models import (CargoMesa, Coligacao, ComposicaoMesa, Dependente,
Filiacao, Legislatura, Mandato, NivelInstrucao,

6
protocoloadm/views.py

@ -2,7 +2,7 @@ from datetime import date, datetime
from re import sub
from crispy_forms.helper import FormHelper
from crispy_forms.layout import (HTML, Field, Fieldset, Layout)
from crispy_forms.layout import HTML, Field, Fieldset, Layout
from django import forms
from django.core.exceptions import ObjectDoesNotExist
from django.core.urlresolvers import reverse
@ -19,9 +19,9 @@ from django.views.generic.edit import FormMixin
from vanilla import GenericView
import sapl
from sapl.layout import form_actions
from materia.models import Proposicao, TipoMateriaLegislativa
from sapl.crud import build_crud
from sapl.layout import form_actions
from .models import (Autor, DocumentoAcessorioAdministrativo,
DocumentoAdministrativo, Protocolo,
@ -614,7 +614,7 @@ class ProtocoloMateriaView(FormMixin, GenericView):
numeracao = Protocolo.objects.all().aggregate(Max('numero'))
if numeracao is None:
numero['numero__max'] = 0
numeracao['numero__max'] = 0
protocolo = Protocolo()

2
sapl/layout.py

@ -1,5 +1,5 @@
from crispy_forms.bootstrap import FormActions
from crispy_forms.layout import Submit, Layout, Div, Fieldset, HTML
from crispy_forms.layout import HTML, Div, Fieldset, Layout, Submit
from django.utils.translation import ugettext as _

2
sessao/views.py

@ -15,12 +15,12 @@ from django.views.generic.edit import FormMixin
from rest_framework import generics
import sapl
from sapl.layout import form_actions
from materia.models import (Autoria, DocumentoAcessorio,
TipoMateriaLegislativa, Tramitacao)
from norma.models import NormaJuridica
from parlamentares.models import Parlamentar
from sapl.crud import build_crud
from sapl.layout import form_actions
from sessao.serializers import SessaoPlenariaSerializer
from .models import (AcompanharMateria, CargoMesa, ExpedienteMateria,

Loading…
Cancel
Save