From 13a5b07df28e0922094d827dd3225a81ad3d9aff Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Thu, 28 Apr 2016 07:10:44 +0200 Subject: [PATCH] fixed variable name --- app/rollerverbrauch/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/rollerverbrauch/__init__.py b/app/rollerverbrauch/__init__.py index fced2c7..495ab17 100644 --- a/app/rollerverbrauch/__init__.py +++ b/app/rollerverbrauch/__init__.py @@ -56,9 +56,9 @@ def user_registered_sighandler(app, user, confirm_token): """ role = user_datastore.find_role('user') user_datastore.add_role_to_user(user, role) - v = Vehicle('default vehicle') - db.session.add(v) - user.vehicles.append(v) + new_vehicle = Vehicle('default vehicle') + db.session.add(new_vehicle) + user.vehicles.append(new_vehicle) db.session.commit() db_log_add(user) db_log_add(new_vehicle)