comment create user demo un initdatas

This commit is contained in:
Cayo Puigdefabregas 2024-02-16 10:48:49 +01:00
parent 4d416f426c
commit 2c039c0a12
1 changed files with 5 additions and 5 deletions

View File

@ -33,9 +33,9 @@ class InitDatas:
db.session.add(inv) db.session.add(inv)
db.session.commit() db.session.commit()
if self.email: # if self.email:
user = User(email=self.email, password=self.password) # user = User(email=self.email, password=self.password)
user.individuals.add(Person(name=self.name)) # user.individuals.add(Person(name=self.name))
db.session.add(user) # db.session.add(user)
db.session.commit() # db.session.commit()