title: Ucenik matching query does not exist
body: <p>I have a problem in views.py:</p>
  <pre><code>def profil(request, pk):
  
      context = {
          'profesor': Profesor.objects.get(id=pk),
          'ucenik': Ucenik.objects.get(id=pk),
      }
      return render(request, 'profil.html', context)
  </code></pre>
  <p>when i go to page i got this error: Ucenik matching query does not exist.</p>
  <p>my url.py:</p>
  <pre><code>    path('profesor/', views.profesor, name='profesor'),
      path('ucenik/', views.ucenik, name='ucenik'),
      path('profil/&lt;str:pk&gt;/', views.profil, name='profil'),
  </code></pre>
  <p>if i delete: 'ucenik': Ucenik.objects.get(id=pk)  then work, but on my profil.html page i need to display details Prfesor model and Ucenik model, i need both of them in def profil</p>