def get_queryset(self): show_hidden = False if 'changed_after' in self.request.GET: show_hidden = True return prepare_view.all_sites(self.request, pages=False, show_hidden=show_hidden)['jokes']
def all_sites(request): context = prepare_view.all_sites(request) return render(request, "obce_all.html", context, context_instance=RequestContext(request))