14 lines
312 B
Python
14 lines
312 B
Python
# Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and Contributors
|
|
# GNU GPLv3 License. See license.txt
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
import frappe
|
|
|
|
no_cache = 1
|
|
|
|
|
|
def get_context(context):
|
|
csrf_token = frappe.sessions.get_csrf_token()
|
|
frappe.db.commit()
|
|
context.csrf_token = csrf_token |