Closed loeeess closed 2 months ago
Click to see where and how coverage changed
File Statements Missing Coverage Coverage
(new stmts)Lines missing
django_filters
__init__.py
filterset.py
Project Total
This report was generated by python-coverage-comment-action
Just added a change to the docs. Not sure if the following line is redundant due to the explanation for each enum value:
Note that both the
WARN
andIGNORE
options do not include the unknown field(s) in the list of filters.
This is now available in v24.3 on PyPI. Thanks @loeeess!
That's great to see @carltongibson , thanks so much! 🎉
What's the best way to proceed, should I close the issue?
Oops. I didn't see that. Closed it now. Thanks.
Based on the suggestion mentioned in #1666, I have added the
handle_unrecognized_field
method to theBaseFilterSet
and a new optionunknown_field_behavior
inFilterSetOptions
where users can specify how unrecognized field types should be handled (raise - default, warn, ignore).Changes include:
handle_unrecognized_field
method inBaseFilterSet
, including newFilterSet
optionraise
,warn
,ignore
, andinvalid
behaviors