Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

list view render queryset

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #list #view #render #queryset
ADD COMMENT
Topic
Name
3+5 =