pagetools.search package

Subpackages

Submodules

pagetools.search.forms module

class pagetools.search.forms.AdvSearchForm(*args, **kwargs)[source]

Bases: Form

base_fields = {'contains_all': <django.forms.fields.CharField object>, 'contains_any': <django.forms.fields.CharField object>, 'contains_exact': <django.forms.fields.CharField object>, 'contains_not': <django.forms.fields.CharField object>}
declared_fields = {'contains_all': <django.forms.fields.CharField object>, 'contains_any': <django.forms.fields.CharField object>, 'contains_exact': <django.forms.fields.CharField object>, 'contains_not': <django.forms.fields.CharField object>}
property media

Return all media required to render the widgets on this form.

pagetools.search.settings module

pagetools.search.urls module

pagetools.search.views module

class pagetools.search.views.SearchResultsView(**kwargs)[source]

Bases: PaginatorMixin

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

context_object_name = 'results'
filtered_queryset(mod)[source]
fobj = <_io.TextIOWrapper name='/home/docs/checkouts/readthedocs.org/user_builds/django-pagetools/checkouts/stable/pagetools/search/search_replacements.json' mode='r' encoding='utf8'>
form = None
form_cls

alias of AdvSearchForm

get(request, *args, **kwargs)[source]
get_context_data(**kwargs)[source]

Get the context for this view.

get_queryset(**_kwargs)[source]

Return the list of items for this view.

The return value must be an iterable and may be an instance of QuerySet in which case QuerySet specific behavior will be enabled.

replacements = {'Ä': '&Auml;', 'Ö': '&Ouml;', 'Ü': '&Uuml;', 'ß': '&szlig;', 'ä': '&auml;', 'ö': '&ouml;', 'ü': '&uuml;'}
result_(sterms, combine_op)[source]
result_all()[source]
result_any()[source]
search_params: Dict[str, Any] = {}
template_name = 'search_results.html'
pagetools.search.views.search(request, *args, **kwargs)

Module contents

pagetools.search.extra_filter(queryset)[source]