Browse Source

since we are creating users, we must mark them as not-validated

master
Julio Biason 11 years ago
parent
commit
51ee0f4b4b
  1. 2
      luncho/database.py

2
luncho/database.py

@ -11,6 +11,7 @@ from pony.orm import Required
db = Database("sqlite", "tagallery.db", create_db=True) db = Database("sqlite", "tagallery.db", create_db=True)
class User(db.Entity): class User(db.Entity):
"""Users.""" """Users."""
username = PrimaryKey(unicode) username = PrimaryKey(unicode)
@ -20,5 +21,6 @@ class User(db.Entity):
# 2. This forces the user to have a single # 2. This forces the user to have a single
# login everywhere, per day. # login everywhere, per day.
issue_date = Optional(datetime.datetime) issue_date = Optional(datetime.datetime)
validated = Required(bool, default=False)
db.generate_mapping(create_tables=True) db.generate_mapping(create_tables=True)

Loading…
Cancel
Save