📜  列表视图渲染查询集 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:56.859000             🧑  作者: Mango

代码示例2
def get_context_data(self, **kwargs):
        context = super(BookListView, self).get_context_data(**kwargs)
        context['second_queryset'] = # YOUR QUERY HERE
        context['third_queryset'] = # YOUR QUERY HERE
        ...
        return context