Adding 'vote' buttons to django objects
<p>At the moment I have multiple 'Photo' objects being displayed on a pages template.</p>

<p>The <code>Photo</code> Model has a field 'score' which has a default value of 0.</p>

<p>I am struggling to find a way to add two buttons ("up"/"down") in the template related to each object so when the "up" button is clicked it adds 1 to that particular Photo objects score, or if "down" is clicked it subtracts 1 from the score and once the button has been clicked it updates the photos score value in the database.</p>

<p>Here is an example of what I mean:</p>

<p><a href="https://i.stack.imgur.com/Ihl4r.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ihl4r.png" alt="enter image description here"></a></p>

<p>I have looked into using ModelForms and been through the django tutorial on forms but I am struggling to work out how to do it.</p>