[Answer]-Invalid literal for int() with base 10: โ€“ foreignkey

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

Leave a comment