diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2011-08-20 00:28:58 +0200 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2011-08-20 00:28:58 +0200 |
| commit | 95fb9bbbfd0636766bb94a6bffdf67deb1172a12 (patch) | |
| tree | d826f1f54f9200c525c3ffba6e3a7670ee7d28d5 /budget | |
| parent | 3c4d87ae524dd85176faa50fb98f3001b13c14c2 (diff) | |
| download | ihatemoney-mirror-95fb9bbbfd0636766bb94a6bffdf67deb1172a12.zip ihatemoney-mirror-95fb9bbbfd0636766bb94a6bffdf67deb1172a12.tar.gz ihatemoney-mirror-95fb9bbbfd0636766bb94a6bffdf67deb1172a12.tar.bz2 | |
Add the project to the local context even if it is already in session.
Diffstat (limited to 'budget')
| -rw-r--r-- | budget/web.py | 1 |
1 files changed, 1 insertions, 0 deletions
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) |
