Changes between Initial Version and Version 4 of Ticket #30197


Ignore:
Timestamp:
Feb 22, 2019, 4:17:58 PM (6 years ago)
Author:
Alex Epshteyn
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30197

    • Property Easy pickings unset
    • Property Resolutionduplicate
    • Property Status newclosed
  • Ticket #30197 – Description

    initial v4  
    1515Using this filter in a template like:
    1616{{{#!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>
    1818}}}
    1919might 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).
Back to Top