Changes between Initial Version and Version 1 of Ticket #29306
- Timestamp:
- Apr 9, 2018, 7:17:40 PM (7 years ago)
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 1 1 {{{ 2 2 class A: 3 class B: 4 attr="Hello" 3 def __init__(self, value): 4 pass 5 attr="Hello" 5 6 6 7 from django.template import Template, Context 7 t = Template(" {{ A. B.attr }}")8 t = Template(" {{ A.attr }}") 8 9 output=t.render(Context({"A": A})) 9 10 }}}