class documentation

class RelatedFieldListFilter(FieldListFilter):

Known subclasses: django.contrib.admin.RelatedOnlyFieldListFilter

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 field​_admin​_ordering Return the model admin's ordering for related field, if provided.
Method field​_choices Undocumented
Method has​_output Return True if some choices would be output for this filter.
Instance Variable empty​_value​_display Undocumented
Instance Variable lookup​_choices Undocumented
Instance Variable lookup​_kwarg Undocumented
Instance Variable lookup​_kwarg​_isnull Undocumented
Instance Variable lookup​_title Undocumented
Instance Variable lookup​_val Undocumented
Instance Variable lookup​_val​_isnull Undocumented
Instance Variable title Undocumented
Property include​_empty​_choice Return True if a "(None)" choice should be included, which filters out everything except empty relationships.

Inherited from FieldListFilter:

Class Method create Undocumented
Class Method register Undocumented
Method queryset Return the filtered queryset.
Class Variable ​_field​_list​_filters Undocumented
Class Variable ​_take​_priority​_index Undocumented
Instance Variable field Undocumented
Instance Variable field​_path Undocumented

Inherited from ListFilter (via FieldListFilter):

Class Variable template Undocumented
Instance Variable used​_parameters Undocumented
def __init__(self, field, request, params, model, model_admin, field_path):
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 field_admin_ordering(self, field, request, model_admin):
Return the model admin's ordering for related field, if provided.
def field_choices(self, field, request, model_admin):
def has_output(self):
Return True if some choices would be output for this filter.
empty_value_display =

Undocumented

lookup_choices =

Undocumented

lookup_kwarg =

Undocumented

lookup_kwarg_isnull =

Undocumented

lookup_title =

Undocumented

lookup_val =

Undocumented

lookup_val_isnull =

Undocumented

title =
@property
include_empty_choice =
Return True if a "(None)" choice should be included, which filters out everything except empty relationships.