coleifer/flask-peewee — Issue #18: How to achieve ForeignKeyField where default is null?
Author: davidthewatson
Created: 2012-01-13 18:45:38+00:00
State: open

I have tried to get a ForeignKeyField to use null as its default value but nothing I've tried seems to achieve the desired result, which would be that the drop down for the foreign key has an empty space above the rest of the values representing the null.
I've tried null=True and default=None. Is there something special that I need to do beyond this to get the dropdown behavior?

May just be a documentation issue, but it seems like a typical use-case, and I couldn't figure out how to do it.

Thanks!