How can i aggregate an additional context in Listview for template without use super().
I have this, but I not access to model_list in template
def get_context_data(self, **kwargs):
kwargs['title'] = 'Products'
return kwargs
And with this code works very good
def get_context_data(self, kwargs):
context = super(ProdutcListView, self).get_context_data(kwargs)
context['title'] = 'Products'
return context
Hi,
How can i aggregate an additional context in Listview for template without use super().
I have this, but I not access to model_list in template def get_context_data(self, **kwargs): kwargs['title'] = 'Products' return kwargs
And with this code works very good def get_context_data(self, kwargs): context = super(ProdutcListView, self).get_context_data(kwargs) context['title'] = 'Products' return context