diff --git a/HISTORY.rst b/HISTORY.rst index ad847f4a46..3f6b76ef57 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -86,6 +86,7 @@ relevant. - Add support for the fillcolor argument to the rotate transformation. +- Sort documents by label. 3.0.3 (2018-08-17) ================== diff --git a/mayan/apps/documents/models.py b/mayan/apps/documents/models.py index e3a154f717..5a75bd390e 100644 --- a/mayan/apps/documents/models.py +++ b/mayan/apps/documents/models.py @@ -217,9 +217,9 @@ class Document(models.Model): trash = TrashCanManager() class Meta: + ordering = ('label',) verbose_name = _('Document') verbose_name_plural = _('Documents') - ordering = ('-date_added',) def __str__(self): return self.label or ugettext('Document stub, id: %d') % self.pk