klipstein/dojango — Issue #40: 40 - dojango datagrid does not handle function-call field correctly. 
Author: klipstein
Created: 2011-11-06 12:57:57+00:00
State: open

What steps will reproduce the problem?
1. create a model with a function inside,
2. create a datagrid-list and add the function call in the list_display
3. once rendered, try to sort by the function-call fiedl.

What is the expected output? What do you see instead?
the output is "une erreur est survenue" instead of a sorted list.

What version of the product are you using? On what operating system?
svn, rev 244, ubuntu 9.10

Please provide any additional information below.

it seems that the target.order_by() can't order by a function-call field.

i solved the problem with a ugly hack of the view datagrid_list in views.py

(sorry for my english, i'm french..)

Original link: http://code.google.com/p/dojango/issues/detail?id=40