How can i get 'pk' or 'id' in get_context_data from ListView
class AllListView(ListView):
context_object_name = 'all_products'
queryset = Product.objects.all
template_name = 'jewelry_store/home.html'
def get_context_data(self,**kwargs):
context = super(AllListView,self).get_context_data(**kwargs)
context['collections'] = Collection.objects.all
context['products'] = self.queryset
context['cool'] = Collection.objects.filter(pk=self.kwargs.get('pk'))
in output it gives empty queryset

in urls
path('', views.AllListView.as_view(), name='all_products')
``