From 95fb9bbbfd0636766bb94a6bffdf67deb1172a12 Mon Sep 17 00:00:00 2001 From: Alexis Metaireau Date: Sat, 20 Aug 2011 00:28:58 +0200 Subject: [PATCH] Add the project to the local context even if it is already in session. --- budget/web.py | 1 + 1 file changed, 1 insertion(+) diff --git a/budget/web.py b/budget/web.py index 1329dbe..2c48318 100644 --- a/budget/web.py +++ b/budget/web.py @@ -44,6 +44,7 @@ def authenticate(redirect_url=None, project_id=None): else: # if credentials are already in session, redirect if project_id in session and project.password == session[project_id]: + setattr(g, 'project', project) redirect_url = redirect_url or url_for("list_bills") return redirect(redirect_url)