diff options
| author | Bas Peschier <bpeschier@fizzgig.nl> | 2014-08-27 10:41:12 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-08-30 13:27:56 +0200 |
| commit | eacf244506d8b7e6dd6483834ea122fec864da85 (patch) | |
| tree | 7a6889f60a45590b1659faae4a0199178c59fc40 /tests/context_processors/templates | |
| parent | 6613ea6e3ff2597c04db35ef885562e95c1ef012 (diff) | |
Converted sql_queries into a lazily evaluated list.
Fixed #23364. Thanks Markush2010 for the report.
Diffstat (limited to 'tests/context_processors/templates')
| -rw-r--r-- | tests/context_processors/templates/context_processors/debug.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/context_processors/templates/context_processors/debug.html b/tests/context_processors/templates/context_processors/debug.html new file mode 100644 index 0000000000..671ab81372 --- /dev/null +++ b/tests/context_processors/templates/context_processors/debug.html @@ -0,0 +1,15 @@ +{% if debug == True %} + +Have debug + +First query list: {{ sql_queries|length }} + +{% for obj in debug_objects.all %}{{ obj }}{% endfor %} + +Second query list: {{ sql_queries|length }} + +{% for obj in debug_objects.all %}{{ obj }}{% endfor %} + +Third query list: {{ sql_queries|length }} + +{% endif %} |
