Add csrftoken to TailboneForm js

ugh..for now at least
This commit is contained in:
Lance Edgar 2021-04-28 14:05:48 -05:00
parent 661d536e9d
commit 544f05a5a8

View file

@ -104,6 +104,9 @@
let ${form.component_studly}Data = {
## TODO: should find a better way to handle CSRF token
csrftoken: ${json.dumps(request.session.get_csrf_token() or request.session.new_csrf_token())|n},
## TODO: ugh, this seems pretty hacky. need to declare some data models
## for various field components to bind to...
% if not form.readonly: