Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base: 614d18b56d
...
compare: 9f45d2792d
Checking mergeability… Don't worry, you can still create the pull request.
  • 3 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 11 additions and 4 deletions.
  1. +10 −3 redis_panel.py
  2. +1 −1  setup.py
View
13 redis_panel.py
@@ -53,7 +53,7 @@ def execute(self, *args, **kw):
debug_config = getattr(settings, 'DEBUG_TOOLBAR_CONFIG', {})
enable_stack = debug_config.get('ENABLE_STACKTRACES', True)
- trace = enable_stack and tidy_stacktrace(reversed(get_stack()))[:-2] or []
+ trace = enable_stack and tidy_stacktrace(reversed(get_stack()))[:-1] or []
transaction = {'calls': []}
@@ -179,6 +179,7 @@ def render_stacktrace(trace):
<th>{% trans "Call" %}</th>
<th>{% trans "Args" %}</th>
<th>{% trans "Result" %}</th>
+ <th>{% trans "Action" %}</th>
</tr>
</thead>
@@ -190,11 +191,12 @@ def render_stacktrace(trace):
<td>{{ call.function }}</td>
<td>{{ call.args }}</td>
<td>{{ call.return }}</td>
+ <td><a href="#" class="djdtRedisShowTrace">{% trans "Show stacktrace" %}</a></td>
</tr>
{% if call.trace %}
- <tr class="{{ call.function }}">
- <td colspan="4">
+ <tr class="djdtRedisTrace" style="display:none">
+ <td colspan="5">
<pre class="stack">{{ call.trace }}</pre>
</td>
</tr>
@@ -204,4 +206,9 @@ def render_stacktrace(trace):
{% endfor %}
</tbody>
</table>
+<script type="text/javascript">
+ $('.djdtRedisShowTrace').click(function () {
+ $(this).parent().parent().next().toggle()
+ })
+</script>
"""
View
2  setup.py
@@ -2,7 +2,7 @@
setup(
name='django-debug-toolbar-redis',
- version='0.0.1',
+ version='0.0.2',
description='Simple debug toolbar panel for Redis',
#long_description=open('README.md').read(),
author='Clement Nodet',

No commit comments for this range

Something went wrong with that request. Please try again.