id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 16389 In Django 1.3, dictionary lookup now calls the value if callable making classes unusable Domen Kožar nobody "I used to have context processor that returned a dict of all registered model classes. This used to work in Django 1.2.x very well and removed the need of redundant imports. Let's refer to [https://docs.djangoproject.com/en/1.3/ref/templates/api/ documentation]: > If any part of the variable is callable, the template system will try calling it. And the change: > Changed in Django 1.3: Previously, only variables that originated with an attribute lookup would be called by the template system. This change was made for consistency across lookup types. This is a pretty big design change, I wonder what ""consistency"" implies here. For example, you can not do anymore in the templates: {{{ {{ User.objects.all }} }}} Because your User will become and User instance, since it's looked up in Context, which is an dictionary. As a side effect, there is no way you can use class in the template anymore." Bug closed Template system 1.3 Normal invalid template lookup dictionary callable domen@… Unreviewed 0 0 0 0 0 0