X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/1b9ba95da190a11d915fc910b62fdfc9d6dca356..6b2d761f28d548e2ebd4d29c0c57fd63c3ba058e:/apps/catalogue/models/document.py?ds=inline diff --git a/apps/catalogue/models/document.py b/apps/catalogue/models/document.py index a1a0a3ce..9863e659 100755 --- a/apps/catalogue/models/document.py +++ b/apps/catalogue/models/document.py @@ -74,6 +74,7 @@ class Document(Ref): class Meta: verbose_name = _('document') verbose_name_plural = _('documents') + ordering = ['-revision__created_at'] def short_html(self): return render_to_string('catalogue/book_list/book.html', {'book': self})