Merge pull request #43 from saurabh6790/leave_chapter_fix

[fix] delete user details once he left the chapter
This commit is contained in:
Vishal Dhayagude
2017-09-01 22:33:05 +05:30
committed by GitHub

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