[fix] delete user details once he left the chapter

This commit is contained in:
Saurabh
2017-09-01 12:16:24 +05:30
parent 521acf9df1
commit 8e6d57dc07

View File

@@ -8,6 +8,7 @@ def get_context(context):
user = frappe.session.user
parent = frappe.form_dict.name
frappe.db.sql("""delete from `tabChapter Member` where parent = %s and user = %s """, (parent, user))
frappe.db.commit()
context.member_deleted = True