Skip to content
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

docs: Fix a few typos #1652

Merged
merged 1 commit into from
Jul 14, 2022
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 debug_toolbar/panels/sql/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def simplify(sql):

def contrasting_color_generator():
"""
Generate constrasting colors by varying most significant bit of RGB first,
Generate contrasting colors by varying most significant bit of RGB first,
and then vary subsequent bits systematically.
"""

Expand Down
4 changes: 2 additions & 2 deletions tests/panels/test_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ def test_prettify_sql(self):

# Reset the queries
self.panel._queries = []
# Run it again, but with prettyify off. Verify that it's different.
# Run it again, but with prettify off. Verify that it's different.
dt_settings.get_config()["PRETTIFY_SQL"] = False
list(User.objects.filter(username__istartswith="spam"))
response = self.panel.process_request(self.request)
Expand All @@ -453,7 +453,7 @@ def test_prettify_sql(self):
self.assertNotEqual(pretty_sql, self.panel._queries[-1]["sql"])

self.panel._queries = []
# Run it again, but with prettyify back on.
# Run it again, but with prettify back on.
# This is so we don't have to check what PRETTIFY_SQL does exactly,
# but we know it's doing something.
dt_settings.get_config()["PRETTIFY_SQL"] = True
Expand Down