apply_limit_choices_to_to_formfield
Apply limit_choices_to to the formfield's queryset if needed.
def apply_limit_choices_to_to_formfield(
formfield: django.forms.Field
) - > null
Apply limit_choices_to to the formfield's queryset if needed.
Parameters
| Name | Type | Description |
|---|---|---|
| formfield | django.forms.Field | The form field instance whose queryset should be filtered based on its limit_choices_to attribute. |
Returns
| Type | Description |
|---|---|
null | Nothing; the formfield's queryset is modified in-place. |