From c4984d395652e01dfc4b0cf3dba40cd72a9b6b4c Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Mon, 14 Mar 2016 09:50:47 -0300 Subject: [PATCH] Muda titulo do cadastro do parlamentar e ordena listagem por nome --- comissoes/forms.py | 7 +------ comissoes/views.py | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/comissoes/forms.py b/comissoes/forms.py index 0843643d7..fcd23936a 100644 --- a/comissoes/forms.py +++ b/comissoes/forms.py @@ -134,11 +134,6 @@ class ParticipacaoCadastroForm(ModelForm): 'motivo_desligamento', 'observacao'] - widgets = { - 'data_designacao': forms.DateInput(format='%d/%m/%Y'), - 'data_desligamento': forms.DateInput(format='%d/%m/%Y'), - } - def __init__(self, *args, **kwargs): self.helper = FormHelper() @@ -159,7 +154,7 @@ class ParticipacaoCadastroForm(ModelForm): self.helper.layout = Layout( Fieldset( - _('Formulário de Cadastro'), + _('Cadastro de Parlamentar em Comissão'), row1, row2, row3, row4 ), form_actions() diff --git a/comissoes/views.py b/comissoes/views.py index 0da73e5f7..c38bc66c8 100644 --- a/comissoes/views.py +++ b/comissoes/views.py @@ -34,7 +34,7 @@ class ComposicaoView(FormMixin, GenericView): composicoes = Composicao.objects.filter( comissao_id=self.kwargs['pk']).order_by('-periodo') - participacoes = Participacao.objects.all() + participacoes = Participacao.objects.all().order_by('parlamentar') if composicoes: composicao_id = composicoes.first().id