#3264: [patch] object_list in archive_year view always contains items in
ascending
order
-----------------------------------------------------+----------------------
Reporter: paolo <[EMAIL PROTECTED]> | Owner: adrian
Type: defect | Status: closed
Priority: normal | Milestone: Version 1.0
Component: Generic views | Version: SVN
Severity: normal | Resolution: duplicate
Keywords: archive_year object_list order ordering |
-----------------------------------------------------+----------------------
Changes (by [EMAIL PROTECTED]):
* status: new => closed
* resolution: => duplicate
Comment:
I'm marking this as a duplicate of #3134, as I think that is the better
solution.
To compare the two: this patch changes the {{{archive_year}}} view to use
the model's default ordering (thus changing the behaviour of the view);
the patch at #3134 offers an optional parameter to specify ordering,
defaulting to the current behaviour if left blank. The latter patch also
updates the docs.
#3134 is missing unit tests though; unless anyone else provides them first
I will add them when I can.
--
Ticket URL: <http://code.djangoproject.com/ticket/3264#comment:>
Django <http://code.djangoproject.org/>
The web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django
updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---