context_layer[key] = "<<request>>"
// Replace the debugging sql_queries element. The SQL
// data is already made available from the SQL panel.
elif key == "sql_queries" and isinstance(value, list):
context_layer[key] = "<<sql_queries>>"
// Replace LANGUAGES, which is available in i18n context processor
elif key == "LANGUAGES" and isinstance(value, tuple):
After Change
info["template"] = template
// Clean up context for better readability
if getattr(settings, "DEBUG_TOOLBAR_CONFIG", {}).get("SHOW_TEMPLATE_CONTEXT", True):
context_list = template_data.get("context", [])
info["context"] = "\n".join(context_list)
template_context.append(info)
context = self.context.copy()