filter_tools
django_spire.contrib.queryset.filter_tools
filter_by_lookup_map
Filters a given queryset based on a lookup map and provided data. Additional filters can also be applied if provided.
Parameters: queryset (QuerySet): The queryset to be filtered. lookup_map (dict): A dictionary mapping input data keys to filtering fields in the queryset. data (dict): A dictionary containing key-value pairs to filter the queryset. extra_filters (list | None): Optional. A list of extra positional filter arguments to be applied. Defaults to None.
Returns: QuerySet: The filtered queryset.