Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix AllOfFilter #52

Merged
merged 2 commits into from
Feb 29, 2024
Merged

Conversation

DWalterJansen
Copy link
Contributor

In the previous way, the value of conjoined was reset in the parent class MultipleChoiceFilter, making it mandatory to provide the value as True when using the filter to work as expected

Ex.:

spell_name = filters.AllOfFilter(field_name="spell_casts__spell__name", conjoined=True).

With this change, when omtting this declaration, the __init__ will fill True in conjoined, and the exception continues to be raised when the passed value is False. Additionally, a typo error was fixed.

In the previous way, the value of `conjoined` was reset in the parent
class (MultipleChoiceFilter), making it mandatory to provide the value
as `True` when using the filter. Ex.: AllOfFilter(conjoined=True).
With this change, omitting this declaration, `__init__` will fill in this
value, and the exception continues to be raised when the passed value is
False
Additionally, a typo error was fixed.
@DWalterJansen DWalterJansen changed the title FIx AllOfFilter Fix AllOfFilter Feb 29, 2024
@joaodaher joaodaher merged commit 440e79d into flamingo-run:main Feb 29, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants