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 31865 Missing variable in admin template Christian Ullrich Carlton Gibson "The `admin/nav_sidebar.html` template appears to be missing an assignment to `show_changelinks` where it includes `app_list.html`: {{{ {% include 'admin/app_list.html' with app_list=available_apps %} }}} This leads to megabytes of log spam for every admin page visited with the sidebar on: {{{ 2020-08-07 09:06:49,882 [DEBUG ] (django.template) Exception while resolving variable 'show_changelinks' in template 'admin/change_list.html'. Traceback (most recent call last): File ""[python]\lib\site-packages\django\template\base.py"", line 829, in _resolve_lookup current = current[bit] File ""[python]\lib\site-packages\django\template\context.py"", line 83, in __getitem__ raise KeyError(key) KeyError: 'show_changelinks' During handling of the above exception, another exception occurred: Traceback (most recent call last): File ""[python]\lib\site-packages\django\template\base.py"", line 835, in _resolve_lookup if isinstance(current, BaseContext) and getattr(type(current), bit): AttributeError: type object 'RequestContext' has no attribute 'show_changelinks' During handling of the above exception, another exception occurred: Traceback (most recent call last): File ""[python]\lib\site-packages\django\template\base.py"", line 843, in _resolve_lookup current = current[int(bit)] ValueError: invalid literal for int() with base 10: 'show_changelinks' During handling of the above exception, another exception occurred: Traceback (most recent call last): File ""[python]\lib\site-packages\django\template\base.py"", line 848, in _resolve_lookup raise VariableDoesNotExist(""Failed lookup for key "" django.template.base.VariableDoesNotExist: Failed lookup for key [show_changelinks] in [{'True': True, 'False': False, 'None': None},}}} " Bug closed contrib.admin 3.1 Release blocker fixed Ready for checkin 1 0 0 0 1 0