Skip to content

Version 3.2.2 #1492

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Here's a screenshot of the toolbar in action:
In addition to the built-in panels, a number of third-party panels are
contributed by the community.

The current stable version of the Debug Toolbar is 3.2.1. It works on
The current stable version of the Debug Toolbar is 3.2.2. It works on
Django ≥ 2.2.

Documentation, including installation and configuration instructions, is
Expand Down
2 changes: 1 addition & 1 deletion debug_toolbar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Do not use pkg_resources to find the version but set it here directly!
# see issue #1446
VERSION = "3.2.1"
VERSION = "3.2.2"

# Code that discovers files or modules in INSTALLED_APPS imports this module.

Expand Down
4 changes: 4 additions & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Change log
Next version
------------


3.2.2 (2021-08-14)
------------------

* Ensured that the handle stays within bounds when resizing the window.
* Disabled ``HistoryPanel`` when ``RENDER_PANELS`` is ``True``
or if ``RENDER_PANELS`` is ``None`` and the WSGI container is
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
copyright = copyright.format(datetime.date.today().year)

# The full version, including alpha/beta/rc tags
release = "3.2.1"
release = "3.2.2"


# -- General configuration ---------------------------------------------------
Expand Down
Binary file modified example/django-debug-toolbar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 13 additions & 6 deletions example/screenshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import os
import signal
import subprocess
from time import sleep

from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support import expected_conditions as EC
Expand Down Expand Up @@ -33,7 +34,10 @@ def create_webdriver(browser, headless):


def example_server():
return subprocess.Popen(["make", "example"])
proc = subprocess.Popen(["make", "example"])
# `make example` runs a few things before runserver.
sleep(2)
return proc


def set_viewport_size(selenium, width, height):
Expand Down Expand Up @@ -67,12 +71,15 @@ def main():
submit_form(selenium, {"username": os.environ["USER"], "password": "p"})

selenium.get("http://localhost:8000/admin/auth/user/")
# Close the admin sidebar.
el = selenium.find_element_by_id("toggle-nav-sidebar")
el.click()
# Check if SQL Panel is already visible:
sql_panel = selenium.find_element_by_id("djdt-SQLPanel")
if not sql_panel:
# Open the admin sidebar.
el = selenium.find_element_by_id("djDebugToolbarHandle")
el.click()
sql_panel = selenium.find_element_by_id("djdt-SQLPanel")
# Open the SQL panel.
el = selenium.find_element_by_id("djdt-SQLPanel")
el.click()
sql_panel.click()

selenium.save_screenshot(args.outfile)
finally:
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = django-debug-toolbar
version = 3.2.1
version = 3.2.2
description = A configurable set of panels that display various debug information about the current request/response.
long_description = file: README.rst
long_description_content_type = text/x-rst
Expand Down