

def get_context_data(self, **kwargs):
    disabled_backends = {
        
    }
    for obj in DisabledNotificationsTypeBackend.objects.filter(user=self.request.user):
        disabled_backends[obj.notification_type] = obj.get_backends()
    notification_types = {
        
    }
    for (class_name, type_class) in NotificationEngine._types.items():
        notification_types[class_name] = {
            'type_class': type_class,
            'disabled_backends': disabled_backends.get(class_name, []),
        }
    context = super(IndexView, self).get_context_data(**self)
    context['notification_types'] = notification_types
    context['notification_backends'] = NotificationEngine._backends
    return context

dataset/ETHPy150Open kevinrenskers/django-generic-notifications/notifications/views.py IndexView.get_context_data/VarMisuse@118/166 `kwargs`->`self`