pombreda / formalchemy

Automatically exported from code.google.com/p/formalchemy
MIT License
0 stars 0 forks source link

Ordering of generated select controls. #58

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Render any form with a many-many relation and observe the ordering.

What is the expected output? What do you see instead?
When rendering a FieldSet based on an SA class containing many-many relations, 
the select 
controls for these relations are ordered by the primary key of the underlying 
SA table. It's often 
more relevant to sort by the displayed data or some other table-specific 
ordering. It would make 
sense to either:

Allow specification of the sorting via options=

Preserve the sort order from the order_by specified in the SA mapper. This 
should be possible by 
simply omitting the order_by call (I think).

What version of the product are you using? On what operating system?
1.1.1 on MacOS X 10.5.6

Please provide any additional information below.

Original issue reported on code.google.com by james.mc...@gtempaccount.com on 4 Feb 2009 at 4:06

GoogleCodeExporter commented 9 years ago
done in r664

Original comment by jbel...@gmail.com on 6 Feb 2009 at 3:30