@@ -180,6 +180,39 @@ Panel options
180180 Useful for eliminating server-related entries which can result
181181 in enormous DOM structures and toolbar rendering delays.
182182
183+ * ``PRETTIFY_SQL ``
184+
185+ Default: ``True ``
186+
187+ Panel: SQL
188+
189+ Controls SQL token grouping.
190+
191+ Token grouping allows pretty print of similar tokens,
192+ like aligned indentation for every selected field.
193+
194+ When set to ``True ``, it might cause render slowdowns
195+ when a view make long SQL textual queries.
196+
197+ **Without grouping **::
198+
199+ SELECT "auth_user"."id", "auth_user"."password", "auth_user"."last_login", "auth_user"."is_superuser", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name"
200+ FROM "auth_user"
201+ WHERE "auth_user"."username" = '''test_username'''
202+ LIMIT 21
203+
204+ **With grouping **::
205+
206+ SELECT "auth_user"."id",
207+ "auth_user"."password",
208+ "auth_user"."last_login",
209+ "auth_user"."is_superuser",
210+ "auth_user"."username",
211+ "auth_user"."first_name",
212+ "auth_user"."last_name",
213+ FROM "auth_user"
214+ WHERE "auth_user"."username" = '''test_username'''
215+ LIMIT 21
183216
184217* ``PROFILER_MAX_DEPTH ``
185218
@@ -221,40 +254,6 @@ Panel options
221254 The SQL panel highlights queries that took more that this amount of time,
222255 in milliseconds, to execute.
223256
224- * ``PRETTIFY_SQL ``
225-
226- Default: ``True ``
227-
228- Panel: SQL
229-
230- Controls SQL token grouping.
231-
232- Token grouping allows pretty print of similar tokens,
233- like aligned indentation for every selected field.
234-
235- When set to ``True ``, it might cause render slowdowns
236- when a view make long SQL textual queries.
237-
238- **Without grouping **::
239-
240- SELECT "auth_user"."id", "auth_user"."password", "auth_user"."last_login", "auth_user"."is_superuser", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name"
241- FROM "auth_user"
242- WHERE "auth_user"."username" = '''test_username'''
243- LIMIT 21
244-
245- **With grouping **::
246-
247- SELECT "auth_user"."id",
248- "auth_user"."password",
249- "auth_user"."last_login",
250- "auth_user"."is_superuser",
251- "auth_user"."username",
252- "auth_user"."first_name",
253- "auth_user"."last_name",
254- FROM "auth_user"
255- WHERE "auth_user"."username" = '''test_username'''
256- LIMIT 21
257-
258257Here's what a slightly customized toolbar configuration might look like::
259258
260259 # This example is unlikely to be appropriate for your project.
0 commit comments