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