Changes between Initial Version and Version 1 of Ticket #29306


Ignore:
Timestamp:
Apr 9, 2018, 7:17:40 PM (7 years ago)
Author:
Luoxzhg
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29306

    • Property Summary [bugs for all version]Template variable-lookups system evaluate callables before completed the evaluation[bugs]Template variable-lookups system invoke class when access class attribute
  • Ticket #29306 – Description

    initial v1  
    11{{{
    22class A:
    3     class B:
    4          attr="Hello"
     3    def __init__(self, value):
     4         pass
     5    attr="Hello"
    56
    67from django.template import Template, Context
    7 t = Template(" {{  A.B.attr }}")
     8t = Template(" {{  A.attr }}")
    89output=t.render(Context({"A": A}))
    910}}}
Back to Top