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
| Name | Type | Description |
|---|---|---|
| lookups | `dict | object` |
Returns
| Type | Description |
|---|---|
dict | A dictionary of query parameters where values are converted to strings, comma-separated strings for sequences, or integer strings for booleans |