coleifer/flask-peewee — Issue #17: default BooleanField value not honored by admin or WTF
Author: davidthewatson
Created: 2012-01-11 22:08:22+00:00
State: open

I have the following code based on the example in the docs:

class User(db.Model, BaseUser):
username = CharField(unique=True)
password = CharField()
email = CharField(unique=True)
active = BooleanField(default=True)

but when I go to:

http://localhost:5000/admin/user/add/

The active dropdown is set to False. Shouldn't this default to True just like the datetime field defaults to its default value?