Add csrftoken to TailboneForm js
ugh..for now at least
This commit is contained in:
parent
661d536e9d
commit
544f05a5a8
|
@ -104,6 +104,9 @@
|
||||||
|
|
||||||
let ${form.component_studly}Data = {
|
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
|
## TODO: ugh, this seems pretty hacky. need to declare some data models
|
||||||
## for various field components to bind to...
|
## for various field components to bind to...
|
||||||
% if not form.readonly:
|
% if not form.readonly:
|
||||||
|
|
Loading…
Reference in a new issue