Changes between Initial Version and Version 1 of Ticket #35735
- Timestamp:
- Sep 5, 2024, 10:35:25 AM (3 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35735
- Property Owner set to
- Property Status new → assigned
-
Ticket #35735 – Description
initial v1 12 12 Here's a test (that might go into tests/template_tests/syntax_tests/tests_basic.py) which passes on Python 3.9 and fails on Python 3.10+: 13 13 {{{ 14 @setup({"basic-syntax19b": "{{ dict.klass.in_template }}"})14 @setup({"basic-syntax19b": "{{ klass.in_template }}"}) 15 15 def test_access_class_property(self): 16 16 class MyClass(list): … … 21 21 return super().__init__() 22 22 23 output = self.engine.render_to_string("basic-syntax19b", {" dict": dict(klass=MyClass)})23 output = self.engine.render_to_string("basic-syntax19b", {"klass": MyClass}) 24 24 self.assertEqual(output, "True") 25 25 … … 27 27 28 28 I'd be happy to propose a fix. 29 30 Thanks to [https://github.com/benzkji Ben Stähli] and [https://github.com/last-partizan Serhii Tereshchenko] for figuring out this issue. 31 32 References: 33 34 * https://github.com/django-cms/django-cms/issues/7948