Fix migrations error.

This commit is contained in:
shinshin86 2017-11-11 19:04:25 +09:00
parent 3569adfd13
commit dfe5ec63ff

View File

@ -15,6 +15,6 @@ for num in range(100):
email = fake.email() email = fake.email()
phone = fake.phone_number() phone = fake.phone_number()
# Save in database # Save in database
mi_contacto = Contact(name, surname, email, phone) mi_contacto = Contact(name=name, surname=surname, email=email, phone=phone)
db.session.add(mi_contacto) db.session.add(mi_contacto)
db.session.commit() db.session.commit()