Skip to main content

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

NameTypeDescription
formfielddjango.forms.FieldThe form field instance whose queryset should be filtered based on its limit_choices_to attribute.

Returns

TypeDescription
nullNothing; the formfield's queryset is modified in-place.