fix: access request parameter directly

This commit is contained in:
Saurabh 2019-01-24 15:34:41 +05:30
parent 752f2f1805
commit bbebceb31a

View File

@ -15,7 +15,7 @@
{{ chapter_button() }}
<p><a href="">Leave Chapter</a></p>
{% else %}
{% if frappe.local.request.method=='POST' %}
{% if request.method=='POST' %}
<p>Welcome to chapter {{ chapter.name }}!</p>
{{ chapter_button() }}
{% else %}