pombreda / formalchemy

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

Cannot select None on a nullable foreign key #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a model with a nullable foreign key.
2. Run the ext.pylons.admin app (perhaps this is a problem with the 
regular formalchemy select field)
3. Attempt to select "None" as an option.  You will see it's not there.

What is the expected output? What do you see instead?
Expect an option to select "None" in the SelectField

What version of the product are you using? On what operating system?
trunk (r636).  Linux os.

Please provide any additional information below.

Original issue reported on code.google.com by fdhen...@gmail.com on 22 Jan 2009 at 2:44

GoogleCodeExporter commented 9 years ago

Original comment by jbel...@gmail.com on 22 Jan 2009 at 3:28

GoogleCodeExporter commented 9 years ago
fixed in r646.  by default you will have an option labeled None; you can change 
this 
label on a per-Field basis with the with_null_as function.

Original comment by jbel...@gmail.com on 24 Jan 2009 at 4:17