def get_context_data(self, **kwargs): context = super(BaseListView, self).get_context_data(**kwargs) context['clean_query_string'] = clean_query_string(self.request) context['q'] = self.request.GET.get('q') context['title'] = (_('%s list') % self.model._meta.verbose_name).capitalize() return context
def get_context_data(self, **kwargs): context = super(BaseListView, self).get_context_data(**kwargs) context['opts'] = self.model._meta context['clean_query_string'] = clean_query_string(self.request) context['q'] = self.request.GET.get('q') context['title'] = self.model._meta.verbose_name_plural.title() context['ordering'] = self.request.GET.getlist('o') return context
def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) context['clean_query_string'] = clean_query_string(self.request) context['query'] = self.query context['count'] = self.count context['suggest_text'] = self.suggest_text context['replace_query'] = self.replace_query return context
def get_context_data(self, **kwargs): context = super(ArticleListView, self).get_context_data(**kwargs) context['clean_query_string'] = clean_query_string(self.request) # Count the total list of objects context['count'] = self.count context['query'] = self.query return context
def get_context_data(self, **kwargs): context = super(BaseListView, self).get_context_data(**kwargs) context['clean_query_string'] = clean_query_string(self.request) context['q'] = self.request.GET.get('q') return context
def get_context_data(self, **kwargs): context = super(BaseListView, self).get_context_data(**kwargs) context['clean_query_string'] = clean_query_string(self.request) context['q'] = self.request.GET.get('q') return context