title: Django Retrieving Picture ID
body: <p>I'm trying to achieve the results of when a user clicks on a picture from the whiteboard, it will send an argument of the picture id to my function.</p>
  
  <p>This is an example .This display all my users board and when he clicks on the board it will redirect the user with the board id to my function</p>
  
  <pre><code>&lt;h4&gt;My WHiteBoards&lt;/h4&gt;
  {% if board %} 
  &lt;ul&gt;  
      {% for b in board %}         
      &lt;li&gt;&lt;a href ="{% url world:Boat b.id %}"&gt;{{ b.name }}&lt;/li&gt;
      {% endfor %}
  &lt;/ul&gt;
  {% endif %}
  </code></pre>
  
  <p>I'm trying to achieve  the same thing but with an image. When a users click on an image . I want to redirect the user with the argument of the image id to my function. I will know if it happens because my function will redirect the users to my profile but the problem is when the user clicks on the picture , it does not redirect. I think the reason is the hyperlink and the image ain't relating with to each other.</p>
  
  <p>How can I fix this error so when a user clicks on a picture , he will be redirected with the argument of the picture ID</p>
  
  <pre><code>&lt;li&gt;&lt;a href ="{% url world:Like pet.id %}"&gt;&lt;img src= "{{ pet.image.url }}"&gt;
  </code></pre>
  
  <p>My views.py</p>
  
  <pre><code>def Boat(request ,animal_id):
          if not request.user.is_authenticated():
              return HttpResponseRedirect(reverse('world:LoginRequest'))
  
      picture = Picture.objects.filter(whiteboard=animal_id)
      return render(request,'boat.html',{'picture':picture})
  </code></pre>
  
  <p>URLconf.py</p>
  
  <pre><code>    ),
      url(
          r'^(?P&lt;picture_id&gt;\d+)/$',
          'pet.views.Like',
          name = 'Like'
      ),
  </code></pre>
  
  <p>My views.py</p>
  
  <pre><code>def Like(request,picture_id):
      everyone = Person.objects.all()
      return render(request,'everyone.html',{'everyone':everyone,'follow':True,})
  </code></pre>
  
  <p>I hope this make sense otherwise i'll try to rewrite it until it make sense.thank you :]</p>