keep previous input, if "new poll" failed

This commit is contained in:
lars 2010-04-15 12:51:25 +00:00
parent ea317bbd13
commit 3d9db1d05f

View file

@ -186,7 +186,7 @@ def new_poll(submit=None, cancel=None, author=None, title=None, description=None
errors = errors_packed.unpack_errors()
if errors:
value_dict["errors"] = errors
return render("poll_new.html", **value_dict)
return render("poll_new.html", input_data=data, **value_dict)
else:
# create the new poll
hash_key = get_new_hash_key()