class documentation

class SimpleListFilter(ListFilter):

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method choices Return choices ready to be output in the template.
Method expected​_parameters Return the list of parameter names that are expected from the request's query string and that will be used by this filter.
Method has​_output Return True if some choices would be output for this filter.
Method lookups Must be overridden to return a list of tuples (value, verbose value)
Method value Return the value (in string format) provided in the request's query string for this filter, if any, or None if the value wasn't provided.
Class Variable parameter​_name Undocumented
Instance Variable lookup​_choices Undocumented

Inherited from ListFilter:

Method queryset Return the filtered queryset.
Class Variable template Undocumented
Class Variable title Undocumented
Instance Variable used​_parameters Undocumented
def __init__(self, request, params, model, model_admin):
def choices(self, changelist):

Return choices ready to be output in the template.

changelist is the ChangeList to be displayed.

def expected_parameters(self):
Return the list of parameter names that are expected from the request's query string and that will be used by this filter.
def has_output(self):
Return True if some choices would be output for this filter.
def lookups(self, request, model_admin):
Must be overridden to return a list of tuples (value, verbose value)
def value(self):
Return the value (in string format) provided in the request's query string for this filter, if any, or None if the value wasn't provided.
parameter_name =

Undocumented

lookup_choices =

Undocumented