Ticket #3264: respect_model_ordering.diff

File respect_model_ordering.diff, 463 bytes (added by paolo <paolo@…>, 8 years ago)

respect ordering specified in the model

  • date_based.py

     
    7676    if not date_list and not allow_empty:
    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 = []
    8282    if not template_name:
Back to Top