clarified template name
This commit is contained in:
parent
de315af6c9
commit
9f01982035
1 changed files with 2 additions and 2 deletions
|
@ -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
|
# the admin hash should also not be validated - thus we may not add it before
|
||||||
if errors:
|
if errors:
|
||||||
value_dict["errors"] = 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:
|
else:
|
||||||
if submit:
|
if submit:
|
||||||
# update core attributes of the existing poll
|
# 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)
|
poll.change_setting(key, value)
|
||||||
return bobo.redirect(poll.get_admin_url())
|
return bobo.redirect(poll.get_admin_url())
|
||||||
else:
|
else:
|
||||||
return render("poll_admin.html", input_data=data, **value_dict)
|
return render("poll_admin_edit.html", input_data=data, **value_dict)
|
||||||
|
|
||||||
@bobo.query('')
|
@bobo.query('')
|
||||||
def base():
|
def base():
|
||||||
|
|
Loading…
Reference in a new issue