Skip to content

Commit cb9546d

Browse files
committed
Consider the query params when detecting duplicate queries
1 parent 2593bf5 commit cb9546d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debug_toolbar/panels/sql/panel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def generate_stats(self, request, response):
145145

146146
# The key used to determine duplicate queries.
147147
def duplicate_key(query):
148-
return query['raw_sql']
148+
return (query['raw_sql'], query['params'])
149149

150150
if self._queries:
151151
width_ratio_tally = 0

0 commit comments

Comments
 (0)