fnp
/
prawokultury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add publication dates, last change date
[prawokultury.git]
/
migdal
/
api.py
diff --git
a/migdal/api.py
b/migdal/api.py
old mode 100755
(executable)
new mode 100644
(file)
index
7fd6fe3
..
6f81a4d
--- a/
migdal/api.py
+++ b/
migdal/api.py
@@
-10,7
+10,8
@@
from django.utils.translation import get_language
def entry_list(entry_type=None, category=None, promobox=False):
lang = get_language()
def entry_list(entry_type=None, category=None, promobox=False):
lang = get_language()
- object_list = Entry.objects.filter(**{"published_%s" % lang: True})
+ object_list = Entry.objects.filter(**{"published_%s" % lang: True}
+ ).order_by('-published_at_%s' % lang)
if entry_type:
object_list = object_list.filter(type=entry_type.db)
else:
if entry_type:
object_list = object_list.filter(type=entry_type.db)
else: