From 3e7b0e0842e36483841c862cb3412f26a3b1156f Mon Sep 17 00:00:00 2001 From: Valentin Date: Thu, 21 Jul 2016 04:58:25 +1000 Subject: [PATCH 1/2] Fix #852, anyway this parameter never used --- debug_toolbar/panels/sql/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debug_toolbar/panels/sql/utils.py b/debug_toolbar/panels/sql/utils.py index 3bd31e8a5..c0bd4f4e0 100644 --- a/debug_toolbar/panels/sql/utils.py +++ b/debug_toolbar/panels/sql/utils.py @@ -9,7 +9,7 @@ class BoldKeywordFilter: """sqlparse filter to bold SQL keywords""" - def process(self, stack, stream): + def process(self, stream): """Process the token stream""" for token_type, value in stream: is_keyword = token_type in T.Keyword From cfc0aa41889b0881c42ebfb8cc3065373ba9c6dd Mon Sep 17 00:00:00 2001 From: Valentin Date: Thu, 21 Jul 2016 06:27:33 +1000 Subject: [PATCH 2/2] #852 Update minimum sqlparse version to 0.2 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 8db77004d..055abe3e7 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ packages=find_packages(exclude=('tests.*', 'tests', 'example')), install_requires=[ 'Django>=1.8', - 'sqlparse', + 'sqlparse>=0.2.0', ], include_package_data=True, zip_safe=False, # because we're including static files