Skip to content

Commit

Permalink
str -> unicode in models
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoLechemia committed Sep 14, 2020
1 parent 2514fb2 commit 09c4dc8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/pypnusershub/db/models_register.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,23 @@ class TempUser(DB.Model):

id_temp_user = DB.Column(DB.Integer, primary_key=True)
token_role = DB.Column(DB.Unicode)
organisme = DB.Column(DB.String(250))
organisme = DB.Column(DB.Unicode)
id_application = DB.Column(DB.Integer)
confirmation_url = DB.Column(DB.String(250))
confirmation_url = DB.Column(DB.Unicode)
groupe = DB.Column(DB.Boolean)
identifiant = DB.Column(DB.String(250))
nom_role = DB.Column(DB.String(250))
prenom_role = DB.Column(DB.String(250))
desc_role = DB.Column(DB.String(250))
identifiant = DB.Column(DB.Unicode)
nom_role = DB.Column(DB.Unicode)
prenom_role = DB.Column(DB.Unicode)
desc_role = DB.Column(DB.Unicode)
password = DB.Column(DB.Unicode)
pass_md5 = DB.Column(DB.Unicode)
email = DB.Column(DB.Unicode)
id_organisme = DB.Column(DB.Integer)
remarques = DB.Column(DB.String(250))
remarques = DB.Column(DB.Unicode)
champs_addi = DB.Column(JSONB)
date_insert = DB.Column(DB.DateTime)
date_update = DB.Column(DB.DateTime)

def set_password(self, password, password_confirmation, md5):
self.password, self.pass_md5 = check_and_encrypt_password(
password, password_confirmation, md5
Expand Down

0 comments on commit 09c4dc8

Please sign in to comment.