summaryrefslogtreecommitdiff
path: root/app/notes/views.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2014-06-09 14:15:37 -0400
committerluxagraf <sng@luxagraf.net>2014-06-09 14:15:37 -0400
commit7048489fdcc67eb0b32e8ace2ffc03ded42025ea (patch)
treeeaa1fc6bc63f5bbe1d072017065193ff1f365d21 /app/notes/views.py
parent63c62d596dfe49a3675f125b6481f138bdbf2498 (diff)
fixed display, added author tags and an h-card to the footer
Diffstat (limited to 'app/notes/views.py')
-rw-r--r--app/notes/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/notes/views.py b/app/notes/views.py
index 2542293..e89087e 100644
--- a/app/notes/views.py
+++ b/app/notes/views.py
@@ -16,9 +16,9 @@ def entry_detail(request, year, month, slug):
def date_list(request, year, month=None):
if month:
- qs = Note.objects.filter(date_created__year=year, date_created__month=month)
+ qs = Note.objects.filter(date_created__year=year, date_created__month=month).order_by('-date_created')
else:
- qs = Note.objects.filter(date_created__year=year)
+ qs = Note.objects.filter(date_created__year=year).order_by('-date_created')
context = {
'year': year,
'month': month,