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
This commit is contained in:
Gary Wilson Jr 2007-09-07 04:09:59 +00:00
parent e4342b7d28
commit da5ce52061
1 changed files with 1 additions and 1 deletions

View File

@ -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: