From 6212b643ec97e5708a1dc5af39e3f9eb35c01405 Mon Sep 17 00:00:00 2001 From: Arnaud Bos Date: Wed, 14 Sep 2011 02:19:10 +0200 Subject: [PATCH] Simplified #30 fix. --- budget/web.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/budget/web.py b/budget/web.py index 3527a75c..73761357 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