summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Wilson Jr <gary.wilson@gmail.com>2007-09-07 04:09:59 +0000
committerGary Wilson Jr <gary.wilson@gmail.com>2007-09-07 04:09:59 +0000
commitda5ce52061be41c1c6882224ce8201b6d35f43b8 (patch)
tree82031f060aded401e04584b7637791cbbbd5cf8a
parente4342b7d28d3b0c470954f60a02340b472abe7c0 (diff)
Fixed #3134 -- Made the `archive_year` generic view consistent with the other date-based generic views by not performing an `order_by()` on the passed queryset. This change is backwards-incompatible if you were relying on `archive_year` to do the ordering for you.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6057 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/views/generic/date_based.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/views/generic/date_based.py b/django/views/generic/date_based.py
index c0f219f280..6e6cff5872 100644
--- a/django/views/generic/date_based.py
+++ b/django/views/generic/date_based.py
@@ -76,7 +76,7 @@ def archive_year(request, year, queryset, date_field, template_name=None,
if not date_list and not allow_empty:
raise Http404
if make_object_list:
- object_list = queryset.filter(**lookup_kwargs).order_by(date_field)
+ object_list = queryset.filter(**lookup_kwargs)
else:
object_list = []
if not template_name: