From f2260e4052fb59d61a3ac41f82fc64ed27bd6391 Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Tue, 21 Feb 2017 15:16:24 -0300 Subject: [PATCH] Pre selecinado ultimo periodo --- sapl/comissoes/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/comissoes/views.py b/sapl/comissoes/views.py index adbaad6f4..c7c7bd117 100644 --- a/sapl/comissoes/views.py +++ b/sapl/comissoes/views.py @@ -54,7 +54,7 @@ class ComposicaoCrud(MasterDetailCrud): def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) - context['composicao_pk'] = context['composicao_list'].first( + context['composicao_pk'] = context['composicao_list'].last( ).pk if self.take_composicao_pk( ) == 0 else self.take_composicao_pk() context['participacao_set'] = Participacao.objects.filter(