diff options
| author | Vladislav Poluhin | 2012-12-28 09:49:24 +0800 |
|---|---|---|
| committer | Vladislav Poluhin | 2012-12-28 09:49:24 +0800 |
| commit | e3426e308997a59e130d6cc09433a43faec27af4 (patch) | |
| tree | 6953a7ec614770868c1a073ad70a6b8240398c0b /debug_toolbar/views.py | |
| parent | f39026004592a0fd645584fe0006c7750b230a53 (diff) | |
| download | django-debug-toolbar-e3426e308997a59e130d6cc09433a43faec27af4.tar.bz2 | |
Comment back
Diffstat (limited to 'debug_toolbar/views.py')
| -rw-r--r-- | debug_toolbar/views.py | 10 |
1 files changed, 9 insertions, 1 deletions
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', '') |
