Skip to main content

url_params_from_lookup_dict

Convert the type of lookups specified in a ForeignKey limit_choices_to attribute to a dictionary of query parameters

def url_params_from_lookup_dict(
lookups: dict|object
) - > dict

Convert the type of lookups specified in a ForeignKey limit_choices_to attribute to a dictionary of query parameters

Parameters

NameTypeDescription
lookups`dictobject`

Returns

TypeDescription
dictA dictionary of query parameters where values are converted to strings, comma-separated strings for sequences, or integer strings for booleans