From cb9d9c558bb802966c1f3b562bb336530c821071 Mon Sep 17 00:00:00 2001 From: LeandroRoberto Date: Tue, 8 Aug 2017 09:45:35 -0300 Subject: [PATCH] Fix #1359 --- sapl/materia/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sapl/materia/models.py b/sapl/materia/models.py index 1bb308c6d..36d375068 100644 --- a/sapl/materia/models.py +++ b/sapl/materia/models.py @@ -300,6 +300,7 @@ class Autoria(models.Model): verbose_name = _('Autoria') verbose_name_plural = _('Autorias') unique_together = (('autor', 'materia'), ) + ordering = ('-primeiro_autor', 'autor__nome') def __str__(self): return _('%(autor)s - %(materia)s') % {