From 11237329c32d5de82d5c4ebe981bd9f5e7becc0f Mon Sep 17 00:00:00 2001 From: Eduardo Calil Date: Mon, 24 Jul 2017 10:52:52 -0300 Subject: [PATCH] Fix #1281 --- sapl/materia/views.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sapl/materia/views.py b/sapl/materia/views.py index f4b6c4e35..937831ea2 100644 --- a/sapl/materia/views.py +++ b/sapl/materia/views.py @@ -1100,6 +1100,13 @@ class AutoriaCrud(MasterDetailCrud): q = autor_parlamentar | autor_comissoes | autores_outros return q + class ListView(MasterDetailCrud.ListView): + + def get_queryset(self): + qs = super().get_queryset() + + return qs.order_by('-primeiro_autor', 'autor__nome') + class DespachoInicialCrud(MasterDetailCrud): model = DespachoInicial