From 1c0a3bbb080e85c60aedef414794f8e4db572976 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sun, 25 Mar 2007 09:32:01 -0700 Subject: fixed sort order for photos --- bn_django/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bn_django/urls.py b/bn_django/urls.py index 08986f1..be1d329 100644 --- a/bn_django/urls.py +++ b/bn_django/urls.py @@ -8,7 +8,7 @@ urlpatterns = patterns('', # (r'^bn_django/', include('bn_django.foo.urls')), (r'^$', 'django.views.generic.simple.direct_to_template', {'template': 'frontpage.html','extra_context':dict({ \ - 'latest_photos':Photo.objects.order_by('date')[:2], \ + 'latest_photos':Photo.objects.order_by('-date')[:2], \ #'latest_comments':Photo.objects.order_by('date')[:4] \ 'latest_knowledge':git_wiki.models.shortlog(), \ 'latest_comments':Comment.objects.order_by('-submit_date')[:4], \ -- cgit v1.2.3