aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaud Bos <arnaud.tlse@gmail.com>2011-09-14 02:19:10 +0200
committerArnaud Bos <arnaud.tlse@gmail.com>2011-09-14 02:19:10 +0200
commit6212b643ec97e5708a1dc5af39e3f9eb35c01405 (patch)
treeea4c71e15d886adb7a06da58a5aefdc639e7a30c
parent34ccb3546d2d1cb15e3bc4f5524a2c7630dc2182 (diff)
downloadihatemoney-mirror-6212b643ec97e5708a1dc5af39e3f9eb35c01405.zip
ihatemoney-mirror-6212b643ec97e5708a1dc5af39e3f9eb35c01405.tar.gz
ihatemoney-mirror-6212b643ec97e5708a1dc5af39e3f9eb35c01405.tar.bz2
Simplified #30 fix.
-rw-r--r--budget/web.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/budget/web.py b/budget/web.py
index 3527a75..7376135 100644
--- a/budget/web.py
+++ b/budget/web.py
@@ -71,9 +71,8 @@ def authenticate(project_id=None):
if not project:
# But if the user try to connect to an unexisting project, we will
# propose him a link to the creation form.
- if not project_id:
- if request.method == "POST":
- form.validate()
+ if request.method == "POST":
+ form.validate()
else:
create_project = project_id