title: How to get object from PK inside Django template?
body: <p>Inside django template, I would like to get object's name using object's pk. For instance, given that I have pk of object from class <code>A</code>, I would like to do something like the following:</p>
  
  <pre><code>{{ A.objects.get(pk=A_pk).name }}
  </code></pre>
  
  <p>How can I do this?</p>