We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This test will be the inverse of "in". Primary use will be for the selectattr filter to search for substrings in a list of dictionaries.
Example: Given the following list of dictionaries:
test_list = [ {"name": "John"}, {"name": "Jose"}, {"name": "Beth"}, {"name": "Jake"}, ]
Within the template, extract list items that have the sub-string "Jo" in the "name" key:
{{ test_list | selectattr("name", "search", "Jo") | list }}
The text was updated successfully, but these errors were encountered:
Duplicate of #1766
Sorry, something went wrong.
No branches or pull requests
This test will be the inverse of "in". Primary use will be for the selectattr filter to search for substrings in a list of dictionaries.
Example:
Given the following list of dictionaries:
Within the template, extract list items that have the sub-string "Jo" in the "name" key:
The text was updated successfully, but these errors were encountered: