コード例 #1
0
ファイル: models.py プロジェクト: naveenpanwar/helloworld
 def register(cls, name, pw, email = None):
     pw_hash = Hashers.make_pw_hash(name, pw)
     u = User( username = name, password = pw_hash)
     if email:
         u.email = email
     return u