Merge pull request #80 from Cabalist/master

Fix for Bcrypt and SqlAlchemy type casting in Postgres
master
Steven Loria 8 years ago committed by GitHub
commit 9de5e53da0
  1. 2
      {{cookiecutter.app_name}}/{{cookiecutter.app_name}}/user/models.py

@ -32,7 +32,7 @@ class User(UserMixin, SurrogatePK, Model):
username = Column(db.String(80), unique=True, nullable=False) username = Column(db.String(80), unique=True, nullable=False)
email = Column(db.String(80), unique=True, nullable=False) email = Column(db.String(80), unique=True, nullable=False)
#: The hashed password #: The hashed password
password = Column(db.String(128), nullable=True) password = Column(db.Binary(128), nullable=True)
created_at = Column(db.DateTime, nullable=False, default=dt.datetime.utcnow) created_at = Column(db.DateTime, nullable=False, default=dt.datetime.utcnow)
first_name = Column(db.String(30), nullable=True) first_name = Column(db.String(30), nullable=True)
last_name = Column(db.String(30), nullable=True) last_name = Column(db.String(30), nullable=True)

Loading…
Cancel
Save