Getting an error with a HiddenInput field called "security_hash"
It says in the documentation that had I used {{ form }} in my template these values would have been created automatically
But I am not using a template, rather just the comments/post/ endpoint with POST data as follows:
How can I get the security_hash value without this extra view to pass in as POST value?
Edit: I am thinking would it be possible and advisable to pass the {{ form.security_hash }} value from the template/view to the form behind the scenes so this error can be averted.
Edit2: For clarification the security_hash field in question is shown here in code the security_hash value looks like it is being generated from the 'initial_security_hash' function which uses the content_type, object_pk
, and timestamp
fields to generate a hash on line 73, this function is called on line 69.
Due to this I am also further confused as to why my input is not being accepted as I pass in the content_type, object_pk
, and timestamp
fields