def get_context_data(self, **kwargs):
    context = kwargs
    if self.object_list:
        context['object_list'] = self.object_list
        context_object_name = self.get_context_object_name(self.get_queryset())
        if context_object_name:
            context[context_object_name] = self.object_list
    return context
def get_context_data(self, **kwargs):
    context = kwargs
    if self.object_list:
        context['object_list'] = self.object_list
        context_object_name = self.get_context_object_name(self.get_queryset())
        if context_object_name:
            context[context_object_name] = self.object_list
    return context