From e3426e308997a59e130d6cc09433a43faec27af4 Mon Sep 17 00:00:00 2001 From: Vladislav Poluhin Date: Fri, 28 Dec 2012 09:49:24 +0800 Subject: Comment back --- debug_toolbar/views.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'debug_toolbar/views.py') diff --git a/debug_toolbar/views.py b/debug_toolbar/views.py index 9df37db..b1a045e 100644 --- a/debug_toolbar/views.py +++ b/debug_toolbar/views.py @@ -111,7 +111,15 @@ def sql_explain(request): @csrf_exempt def sql_profile(request): - """Returns the output of running the SQL and getting the profiling statistics""" + """ + Returns the output of running the SQL and getting the profiling statistics. + + Expected GET variables: + sql: urlencoded sql with positional arguments + params: JSON encoded parameter values + duration: time for SQL to execute passed in from toolbar just for redisplay + hash: the hash of (secret + sql + params) for tamper checking + """ from debug_toolbar.panels.sql import reformat_sql sql = request.REQUEST.get('sql', '') params = request.REQUEST.get('params', '') -- cgit v1.2.3