Changes between Initial Version and Version 4 of Ticket #30197
- Timestamp:
- Feb 22, 2019, 4:17:58 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30197
- Property Easy pickings unset
- Property Resolution → duplicate
- Property Status new → closed
-
Ticket #30197 – Description
initial v4 15 15 Using this filter in a template like: 16 16 {{{#!django 17 <div> Foo.Bar is an instance of{{ foo.bar|type_name }}</div>17 <div>The class name is {{ foo.bar|type_name }}</div> 18 18 }}} 19 19 might seem valid, but it turns out that this expression will //never// work as intended, due to the implementation of `Variable._resolve_lookup` — the filter we defined in this example will pretty much always return an empty string (or whatever value you configured for your app's `string_if_invalid` setting).