Merge pull request #5 from shinshin86/master

Fix migrations error.
This commit is contained in:
Andros Fenollosa 2017-11-11 11:47:35 +01:00 committed by GitHub
commit d47c229c73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,6 @@ for num in range(100):
email = fake.email()
phone = fake.phone_number()
# 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.commit()