Django

Code

Changeset 6057

Show
Ignore:
Timestamp:
09/06/07 23:09:59 (10 months ago)
Author:
gwilson
Message:

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.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/views/generic/date_based.py

    r5877 r6057  
    7777        raise Http404 
    7878    if make_object_list: 
    79         object_list = queryset.filter(**lookup_kwargs).order_by(date_field) 
     79        object_list = queryset.filter(**lookup_kwargs) 
    8080    else: 
    8181        object_list = []