Browse Source

Formata data do periodo

pull/548/head
Eduardo Edson Batista Cordeiro Alves 9 years ago
parent
commit
de2d503eb8
  1. 5
      sapl/parlamentares/views.py

5
sapl/parlamentares/views.py

@ -38,7 +38,10 @@ class ParticipacaoParlamentarCrud(MasterDetailCrud):
comissao = [
(p.composicao.comissao.nome, p.composicao.comissao.pk),
(p.cargo.nome, None),
(p.composicao.periodo, None)
(p.composicao.periodo.data_inicio.strftime(
"%d/%m/%Y") + ' a ' +
p.composicao.periodo.data_fim.strftime("%d/%m/%Y"),
None)
]
comissoes.append(comissao)
return comissoes

Loading…
Cancel
Save