diff options
author | bnewbold <bnewbold@manus.(none)> | 2007-03-25 09:32:01 -0700 |
---|---|---|
committer | bnewbold <bnewbold@manus.(none)> | 2007-03-25 09:32:01 -0700 |
commit | 1c0a3bbb080e85c60aedef414794f8e4db572976 (patch) | |
tree | 1b48181f2cf8da1beef37ddaa11dd7c0a31c906e | |
parent | 67e6320434f0e130ea02b5bbfc8ba8a9fd182777 (diff) | |
download | bnewnet-1c0a3bbb080e85c60aedef414794f8e4db572976.tar.gz bnewnet-1c0a3bbb080e85c60aedef414794f8e4db572976.zip |
fixed sort order for photos
-rw-r--r-- | bn_django/urls.py | 2 |
1 files changed, 1 insertions, 1 deletions
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], \ |