Browse files

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: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
gdub committed Sep 7, 2007
1 parent e4342b7 commit da5ce52061be41c1c6882224ce8201b6d35f43b8
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/views/generic/
@@ -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)
object_list = []
if not template_name:

0 comments on commit da5ce52

Please sign in to comment.