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

Already on GitHub? Sign in to your account

`title` filter should accept objects. #236

Merged
merged 1 commit into from May 29, 2013

Conversation

Projects
None yet
3 participants
Contributor

johnboxall commented May 29, 2013

In Jinja 2.6 it was possible to pass objects to the title filter and have them correctly resolved.

This behaviour regressed in 2.7.

This change restores the 2.6 behaviour of casting the passed value to a string using soft_unicode.

@mitsuhiko mitsuhiko added a commit that referenced this pull request May 29, 2013

@mitsuhiko mitsuhiko Merge pull request #236 from johnboxall/title-filter-with-objects
`title` filter should accept objects.
147472a

@mitsuhiko mitsuhiko merged commit 147472a into pallets:master May 29, 2013

1 check passed

default The Travis CI build passed
Details

dhendo commented Feb 4, 2014

@mitsuhiko it looks like this is just in master - any chance it can go into a 2.7 package sometime soon?

It currently dies if None is passed through

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment