def METHOD_NAME(self):
    """
    Get queryset of all flatpages to be displayed. If a
    search term is specified in the search form, it will be used
    to filter the queryset.
    """
    # pylint: disable=attribute-defined-outside-init
    self.desc_ctx = {
        "main_filter": _("All pages"),
        "title_filter": "",
    }
    queryset = self.model.objects.all().order_by("title")
    # pylint: disable=attribute-defined-outside-init
    self.form = self.form_class(self.request.GET)
    if not self.form.is_valid():
        return queryset
    data = self.form.cleaned_data
    if data["title"]:
        queryset = queryset.filter(title__icontains=data["title"])
        self.desc_ctx["title_filter"] = (
            _(" with title containing '%s'") % data["title"]
        )
    return queryset