sorting - Disable multiple sort in Django Admin >= 1.4 -


i using django non rel on app engine , problem feature of sort multiple columns in django admin, because need lot of indexes. recreate behavior in django 1.3, can sort column when click it.

i tried googling , everything, couldn't find how.

there's no "proper" way (in 1.4, not sure later versions)

however, turned out quite simple disable in code.

edit result_headers function in django/contrib/admin/templatetags/admin_list.py

at line 149, insert following lines (just before yield statement):

o_list_primary = [make_qs_param(new_order_type, i)] o_list_toggle = [make_qs_param(new_order_type, i)] 

why desirable disable multiple sort functionality?

when using django-nonrel (e.g. on google app engine) each unique combination of sort orders requires own index. list 5 sortable columns, requires more maximum permitted number of indexes per entity (which 200)


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -