Browse Source

Fix QA messages

pull/98/head
Edward Ribeiro 9 years ago
parent
commit
512185d741
  1. 5
      sessao/urls.py
  2. 15
      sessao/views.py

5
sessao/urls.py

@ -9,14 +9,13 @@ from sessao.views import (EditExpedienteOrdemDiaView, EditMateriaOrdemDiaView,
OradorExpedienteView, PainelView,
PautaSessaoDetailView, PautaSessaoListView,
PresencaOrdemDiaView, PresencaView, ResumoView,
SessaoListView, VotacaoEditView,
SessaoCadastroView, SessaoListView, VotacaoEditView,
VotacaoExpedienteEditView, VotacaoExpedienteView,
VotacaoNominalEditView,
VotacaoNominalExpedienteEditView,
VotacaoNominalExpedienteView, VotacaoNominalView,
VotacaoView, sessao_crud, tipo_expediente_crud,
tipo_resultado_votacao_crud, tipo_sessao_crud,
SessaoCadastroView)
tipo_resultado_votacao_crud, tipo_sessao_crud)
urlpatterns_sessao = sessao_crud.urlpatterns + [
url(r'^(?P<pk>\d+)/expediente$',

15
sessao/views.py

@ -1,17 +1,18 @@
from datetime import datetime
from re import sub
from django.forms import ModelForm
from django import forms
from crispy_forms.helper import FormHelper
from crispy_forms.layout import (HTML, ButtonHolder, Column, Fieldset, Layout,
Submit)
from crispy_forms.layout import ButtonHolder, Fieldset, Layout, Submit
from django import forms
from django.core.exceptions import ObjectDoesNotExist
from django.core.urlresolvers import reverse
from django.forms import ModelForm
from django.forms.util import ErrorList
from django.utils.html import strip_tags
from django.utils.translation import ugettext_lazy as _
from django.views.generic import ListView
from django.views.generic.edit import FormMixin
import sapl
from materia.models import Autoria, TipoMateriaLegislativa
from parlamentares.models import Parlamentar
@ -2338,7 +2339,7 @@ class SessaoForm(ModelForm):
fields = ['numero',
'tipo',
'legislatura',
'sessao_legislativa', #Pega do Models os campos necessários para o form
'sessao_legislativa',
'data_inicio',
'hora_inicio',
'iniciada',
@ -2356,7 +2357,7 @@ class SessaoForm(ModelForm):
[('numero', 3),
('tipo', 3),
('legislatura', 3),
('sessao_legislativa', 3)]) #Cria os campos
('sessao_legislativa', 3)])
row2 = sapl.layout.to_row(
[('data_inicio', 4),
@ -2379,7 +2380,7 @@ class SessaoForm(ModelForm):
self.helper = FormHelper()
self.helper.layout = Layout(
Fieldset(
'Dados Básicos', #Desenha o HTML
'Dados Básicos',
row1,
row2,
row3,

Loading…
Cancel
Save