Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#3264 closed defect (duplicate)

[patch] object_list in archive_year view always contains items in ascending order

Reported by: paolo <paolo@…> Owned by: Adrian Holovaty
Component: Generic views Version: dev
Severity: normal Keywords: archive_year object_list order ordering
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When the keyword make_object_list is True (see #697), object_list contains items in ascending order and 'ordering' option in class Meta has no effect.

Attachments (1)

respect_model_ordering.diff (463 bytes ) - added by paolo <paolo@…> 18 years ago.
respect ordering specified in the model

Download all attachments as: .zip

Change History (4)

by paolo <paolo@…>, 18 years ago

Attachment: respect_model_ordering.diff added

respect ordering specified in the model

comment:1 by ramiro <rm0 _at_ gmx.net>, 18 years ago

See #3134 where another solution is proposed, would you mind writing a small comparison of both patches so the people with SVN commiting powers can review it and decide if/what to implement in trunk?. I don´t dare to mark one of both tickets as duplicate of the other because it will close it in the process.

comment:2 by matt.riggott@…, 18 years ago

Resolution: duplicate
Status: newclosed

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.

comment:3 by (none), 18 years ago

milestone: Version 1.0

Milestone Version 1.0 deleted

Note: See TracTickets for help on using tickets.
Back to Top