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(