Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #3134 -- Made the `archive_year` generic view consistent with t…

…he 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
  • Loading branch information...
commit da5ce52061be41c1c6882224ce8201b6d35f43b8 1 parent e4342b7
Gary Wilson Jr. authored September 07, 2007

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/views/generic/date_based.py
2  django/views/generic/date_based.py
@@ -76,7 +76,7 @@ def archive_year(request, year, queryset, date_field, template_name=None,
76 76
     if not date_list and not allow_empty:
77 77
         raise Http404
78 78
     if make_object_list:
79  
-        object_list = queryset.filter(**lookup_kwargs).order_by(date_field)
  79
+        object_list = queryset.filter(**lookup_kwargs)
80 80
     else:
81 81
         object_list = []
82 82
     if not template_name:

0 notes on commit da5ce52

Please sign in to comment.
Something went wrong with that request. Please try again.