title: How to use 'view.kwargs' correctly
body: <p>I am trying to add a Profile Image for a user in a page  next to his username which is working fine and I have tried to use the same logic to add the profile image but it didn't work and I don't know what is the reason, there is no error message showing it is simply not showing because probably it is not written correctly.</p>
  <p>I am trying to understand how to use the query function correctly so this is a trial for me</p>
  <p>Here is the views.py</p>
  <pre><code>
  class UserPostListView(ListView):
      model = Post
      template_name = &quot;user_posts.html&quot;
      context_object_name = 'posts'
      queryset = Post.objects.filter(admin_approved=True)
      paginate_by = 6
  
      def get_queryset(self):
          user = get_object_or_404(User, username=self.kwargs.get('username'),
  profile=self.kwargs.get('profile'))           &lt;---------------------------- Here is my trial to add profile
          return Post.objects.filter(designer=user, admin_approved=True).order_by('-date_posted')
  </code></pre>
  <p>Here is the template</p>
  <pre><code>            {{ view.kwargs.username }}               &lt;---------------------- Showing correctly 
              &lt;embed class=&quot;profile_image&quot; src={{ view.kwargs.user.profile.image.url }}&gt; &lt;------------- not appearing
  </code></pre>