Filters

class hyperadmin.filters.BaseFilter(index)
title = None
state
populate_state()

Returns links representing the filterable actions.

filter_index(active_index)

Returns the filtered queryset.

expected_parameters()

Returns the list of parameter names that are expected from the request’s query string and that will be used by this filter.

is_active()
values()
class hyperadmin.filters.BaseChoicesFilter(index)

Bases: hyperadmin.filters.BaseFilter

choices()
class hyperadmin.filters.SimpleFilter(index)

Bases: hyperadmin.filters.BaseChoicesFilter

parameter_name = None
has_output()
value()

Returns the value (in string format) provided in the request’s query string for this filter, if any. If the value wasn’t provided then returns None.

lookups()

Must be overriden to return a list of tuples (value, verbose value)

expected_parameters()
choices()

Project Versions

Previous topic

Indexes

Next topic

Media types

This Page