Я очень смущен этим, но, похоже, это моя проблема.Я получаю ошибку имени для контекста здесь:
class ProjectView(ListView):
template_name = 'project_portal/home.html'
queryset = Project.objects.all()
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs) # <-- name error here
context['update_category'] = UpdateCategory.objects.all()
context['update'] = Update.objects.all()
return context
Что я здесь не так делаю?Я думал, что:
context = super().get_context_data(**kwargs)
было определение?