title: KeyError at /shops/profile/mannu
body: <p>Hello django developers !. I hope you all are fine.. :)
  Well here i want to get the <code>shop_owner</code> from <code>shop detail view</code> to the <code>get context data</code> function so i can count the total products of that particular shop..</p>
  <p>models.py</p>
  <pre><code>class ShopProfile(models.Model):
  
      shop_owner = models.OneToOneField(User, related_name='shop_profile', on_delete=models.CASCADE)
      shop_address = models.CharField(_(&quot;shop address&quot;), max_length=255)
  </code></pre>
  <p>views.py</p>
  <pre><code>class ShopProfileDetailView(DetailView):
      model = ShopProfile
      template_name='shops/shop_profile.html'
  
      def get_context_data(self,*args, **kwargs):
          context = super(ShopProfileDetailView, self).get_context_data(*args, **kwargs)
          user = context['shop_owner'] #getting error here 
          context[&quot;products_count&quot;] = Product.objects.filter(product_owner=user).count()
          return context
  </code></pre>