(model, field_name)
return filter_
Returns filter for model field by field name.
Returns filter for model field by field name.
Returns filter for model field by field name .
def get_filter_for_field_name(model, field_name):
    """Returns filter for model field by field name.
    """
    filter_ = django_filters.FilterSet.filter_for_field(
        django_filters.filterset.get_model_field(model, field_name,),
        field_name,
    )
    print("EXTRA!!!!")
    print(filter_.extra)
    filter_.widget = FILTER_TYPE_TO_WIDGET.get(
        filter_.__class__
    )
    return filter_
def get_filter_for_field_name ( model , field_name ) : filter_ = django_filters . FilterSet . filter_for_field ( django_filters . filterset . get_model_field ( model , field_name , ) , field_name , ) print ( "EXTRA!!!!" ) print ( filter_ . extra ) filter_ . widget = FILTER_TYPE_TO_WIDGET . get ( filter_ . __class__ ) return filter_