From 51ee0f4b4b30497d4b91a18a28a642d9dfe60c49 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Fri, 7 Mar 2014 14:05:56 -0300 Subject: [PATCH] since we are creating users, we must mark them as not-validated --- luncho/database.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/luncho/database.py b/luncho/database.py index b25f592..1379bb6 100644 --- a/luncho/database.py +++ b/luncho/database.py @@ -11,6 +11,7 @@ from pony.orm import Required db = Database("sqlite", "tagallery.db", create_db=True) + class User(db.Entity): """Users.""" username = PrimaryKey(unicode) @@ -20,5 +21,6 @@ class User(db.Entity): # 2. This forces the user to have a single # login everywhere, per day. issue_date = Optional(datetime.datetime) + validated = Required(bool, default=False) db.generate_mapping(create_tables=True)