fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
refactor imports
[redakcja.git]
/
apps
/
catalogue
/
models
/
document.py
diff --git
a/apps/catalogue/models/document.py
b/apps/catalogue/models/document.py
index
a1a0a3c
..
9863e65
100755
(executable)
--- 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})