Skip to content

Commit

Permalink
fixed bug with message when idea validation fails
Browse files Browse the repository at this point in the history
  • Loading branch information
virhilo committed Mar 13, 2011
1 parent d5c73db commit 1800803
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shootout/views.py
Expand Up @@ -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)
Expand Down

0 comments on commit 1800803

Please sign in to comment.