fixed variable name

This commit is contained in:
Joachim Lusiardi 2016-04-28 07:10:44 +02:00
parent fd206de263
commit 13a5b07df2
1 changed files with 3 additions and 3 deletions

View File

@ -56,9 +56,9 @@ def user_registered_sighandler(app, user, confirm_token):
""" """
role = user_datastore.find_role('user') role = user_datastore.find_role('user')
user_datastore.add_role_to_user(user, role) user_datastore.add_role_to_user(user, role)
v = Vehicle('default vehicle') new_vehicle = Vehicle('default vehicle')
db.session.add(v) db.session.add(new_vehicle)
user.vehicles.append(v) user.vehicles.append(new_vehicle)
db.session.commit() db.session.commit()
db_log_add(user) db_log_add(user)
db_log_add(new_vehicle) db_log_add(new_vehicle)