1. Alexander Solovyov
  2. svarga

Commits

Alexander Solovyov  committed 4d2ec94

contrib.auth: User.password should really be str, not unicode

  • Participants
  • Parent commits 4447868
  • Branches default

Comments (0)

Files changed (1)

File svarga/contrib/auth/models_impl.py

View file
 import datetime
 
+import sqlalchemy as sa
 from svarga import db
 
 from svarga.contrib.auth import utils
     first_name = db.String(max_length=32)
     last_name = db.String(max_length=32)
 
-    password = db.String(max_length=128)
+    password = db.String(max_length=128, type=sa.String)
 
     is_active = db.Boolean(default=True)
     is_admin = db.Boolean(default=False)