aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bn_django/photos/urls.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bn_django/photos/urls.py b/bn_django/photos/urls.py
index c3cce03..6c7fc19 100644
--- a/bn_django/photos/urls.py
+++ b/bn_django/photos/urls.py
@@ -8,8 +8,8 @@ info_dict = { 'extra_context': { 'admin_url': ADMIN_URL,
urlpatterns = patterns('django.views.generic.list_detail',
(r'^$', 'object_list',
- dict(info_dict, queryset=Gallery.objects.all(),
- paginate_by=35, allow_empty= True)),
+ dict(info_dict, queryset=Gallery.objects.order_by('-date'),
+ paginate_by=35, allow_empty= True)),
(r'^(?P<slug>[\d\w-]+)/$', 'object_detail',
dict(info_dict, queryset=Gallery.objects.all(), slug_field='slug')),
(r'^(?P<object_id>\d+)/$', 'object_detail',