From 1800803bd268e443d406f2eb677d7d93104e9dfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Fidosz?= Date: Sun, 13 Mar 2011 17:35:27 +0100 Subject: [PATCH] fixed bug with message when idea validation fails --- shootout/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shootout/views.py b/shootout/views.py index 7b1dbca..2997045 100644 --- a/shootout/views.py +++ b/shootout/views.py @@ -152,7 +152,9 @@ def idea_add(request): try: schema.to_python(params) except formencode.validators.Invalid, why: - request.session.flash(message) + why = str(why).splitlines() + for i in why: # TODO: simpleform + request.session.flash(i) else: author_username = authenticated_userid(request) author = User.get_by_username(author_username)