[UPDT] ATTENDANCE: Replace jquery function for shift field to htmx method in Attendance form

This commit is contained in:
Horilla
2024-08-26 12:00:37 +05:30
parent 35fe7cfe93
commit 649866a92c
12 changed files with 286 additions and 339 deletions

View File

@@ -139,7 +139,10 @@ def csrf_token(context):
"""
to access csrf token inside the render_template method
"""
request = context["request"]
try:
request = context["request"]
except:
request = getattr(_thread_locals, "request")
csrf_input_lazy = lazy(csrf_input, SafeString, str)
return csrf_input_lazy(request)