clarified template name

This commit is contained in:
lars 2010-05-06 21:33:55 +00:00
parent de315af6c9
commit 9f01982035

View file

@ -334,7 +334,7 @@ def admin_poll(cancel=False, submit=None, admin_hash_key=None, author=None,
# the admin hash should also not be validated - thus we may not add it before
if errors:
value_dict["errors"] = errors
return render("poll_admin.html", input_data=data, **value_dict)
return render("poll_admin_edit.html", input_data=data, **value_dict)
else:
if submit:
# update core attributes of the existing poll
@ -348,7 +348,7 @@ def admin_poll(cancel=False, submit=None, admin_hash_key=None, author=None,
poll.change_setting(key, value)
return bobo.redirect(poll.get_admin_url())
else:
return render("poll_admin.html", input_data=data, **value_dict)
return render("poll_admin_edit.html", input_data=data, **value_dict)
@bobo.query('')
def base():