Skip to content

Add default to map filter if attribute is not defined #557

@Yannik

Description

@Yannik

It would be great if the map filter would return an optional default value if the attribute is not defined.

Example:

list_of_dicts|map(attribute='version', default='5.6')

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions