Opened 18 years ago

Closed 17 years ago

#3742 closed (duplicate)

Function with `admin_order_field` only sorts in one direction, with no arrows

Reported by: Jeff Wheeler <jeff@…> Owned by: nobody
Component: contrib.admin Version: 0.96
Severity: Keywords: admin admin_order_field
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 using admin_order_field on a function, it can only be sorted in one direction (ascending), and no arrows will be displayed when sorted.

my_function.admin_order_field = 'model_field'

This will result in the column showing up correctly, and it is a link which sorts, but it does not work, as described above.

Attachments (1)

admin_order_fields_desc.diff (589 bytes ) - added by matt <matt.barry@…> 18 years ago.
Bidirectional change list sorting for sortable non-fields

Download all attachments as: .zip

Change History (4)

by matt <matt.barry@…>, 18 years ago

Bidirectional change list sorting for sortable non-fields

comment:1 by matt <matt.barry@…>, 18 years ago

Has patch: set

Added a patch which I think fixes the problem, which is basically that the last case is comparing field_name to the current sort field; for sortable non-fields it will be admin_order_field and not field_name.

comment:2 by renata_zan@…, 17 years ago

Version: SVN0.96

tetst

comment:3 by James Bennett, 17 years ago

Resolution: duplicate
Status: newclosed

Is this still an issue? #3397 seems to have been re-opened and fixed multiple times to resolve issues with admin_order_field, so I'm going to close out as a duplicate. Re-open #3397 if you're still seeing problems (though at this point I don't think we'll be doing too much to the deprecated admin app).

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