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 16307 Unable to expand (resolve) template variable attribute when the variable is a python class sorin nobody "If you have a variable in a template that contains a python class like `{type} `. If you try to access an attribute in this class, from the template, like `{{ myvar.verbose_name }}` you will not get the attribute and Django will return you the `settings.TEMPLATE_STRING_IF_INVALID` value. I debugged this, using the latest SVN code release on 1.3.x release branch and discovered that Django reaches the line #702 - https://code.djangoproject.com/browser/django/branches/releases/1.3.X/django/template/base.py#L702 This seams like a bug because `current` contains the right class and `current.verbose_name` has a string inside. " Bug closed Template system dev Normal wontfix sorin Enrico Accepted 1 0 0 0 0 0