pombreda / formalchemy

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

relationship attribute does not use default for rendered selected list #158

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When a relationship attribute on the SQLAlchemy model is included in the 
fieldset it does not use the default value from the foreign key column 
specified in the relationship. 

So the select list that is rendered will not have the default value selected. 
Instead it just used the first row that is returned from the foreign key table.

Original issue reported on code.google.com by ja...@deadtreepages.com on 7 Jan 2011 at 6:25

GoogleCodeExporter commented 9 years ago
Can you add the model used ? Or even better a test failure.

Original comment by gael.pas...@gmail.com on 9 Jan 2011 at 4:36