Entry Reference¶
- class rest_filters.filters.Entry¶
Each Filter ultimately resolves to an Entry object, which contains information on how to modify a QuerySet.
Attributes of Entry objects within the same group are combined to create a new Entry instance, representing the cumulative changes to the QuerySet made by all filters in that group.
- __init__(*, group: str, aliases: dict[str, Any] | None = None, value: Any, expression: Any)¶
- Parameters:
group – Group of this Entry.
aliases – Annotations that are going to be applied to QuerySet. These annotations can be referenced in the expression.
value – Parsed value of the query parameter. If groups combined multiple query parameters, this will be a dictionary of
{name: value}pairs.expression – Resolved query expression of this Entry.