X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/1b9ba95da190a11d915fc910b62fdfc9d6dca356..3604839194c368450c7bd3b96d74277f84d524a6:/apps/catalogue/models/document.py?ds=sidebyside 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})