1๐
โ
You have missed out the curly braces when including variables in your template. For example, instead of
<input name="name" id="name" type="hidden" value=revision.user.id form="my_form" />
you should have
<input name="name" id="name" type="hidden" value={{ revision.user.id }} form="my_form" />
You might want to explore using Django forms. They have several useful features including automatic generation of the html.
๐คAlasdair
Source:stackexchange.com