From dfe5ec63ff15aa0529038f120148c9eebb53831a Mon Sep 17 00:00:00 2001 From: shinshin86 Date: Sat, 11 Nov 2017 19:04:25 +0900 Subject: [PATCH] Fix migrations error. --- migrations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations.py b/migrations.py index f9beb6e..b9e913e 100644 --- a/migrations.py +++ b/migrations.py @@ -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()