aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/models.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-10 20:53:01 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-10 20:53:01 +0200
commitd42bd11f47d27453a0476c5c7d042ad2335f8d83 (patch)
treed4ae3e6b060011207b8b142408ba72485c3e5449 /pyaggr3g470r/models.py
parentUpdated README. (diff)
downloadnewspipe-d42bd11f47d27453a0476c5c7d042ad2335f8d83.tar.gz
newspipe-d42bd11f47d27453a0476c5c7d042ad2335f8d83.tar.bz2
newspipe-d42bd11f47d27453a0476c5c7d042ad2335f8d83.zip
Limit the size of the email field.
Diffstat (limited to 'pyaggr3g470r/models.py')
-rw-r--r--pyaggr3g470r/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyaggr3g470r/models.py b/pyaggr3g470r/models.py
index 491e1369..da9c2e25 100644
--- a/pyaggr3g470r/models.py
+++ b/pyaggr3g470r/models.py
@@ -39,7 +39,7 @@ class User(db.Model, UserMixin):
id = db.Column(db.Integer, primary_key = True)
firstname = db.Column(db.String())
lastname = db.Column(db.String())
- email = db.Column(db.String(), index = True, unique = True)
+ email = db.Column(db.String(254), index = True, unique = True)
pwdhash = db.Column(db.String())
roles = db.relationship('Role', backref = 'user', lazy = 'dynamic')
date_created = db.Column(db.DateTime(), default=datetime.now)
bgstack15