Skip to content

Commit 198c060

Browse files
[pre-commit.ci] pre-commit autoupdate (#799)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black-pre-commit-mirror: 25.12.0 → 26.1.0](psf/black-pre-commit-mirror@25.12.0...26.1.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent ede4d10 commit 198c060

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
repos:
33
- repo: https://github.com/psf/black-pre-commit-mirror
4-
rev: 25.12.0
4+
rev: 26.1.0
55
hooks:
66
- id: black
77
language_version: python3.10

auditlog/management/commands/auditlogmigratejson.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,13 @@ def migrate_using_sql(self, database):
126126

127127
def postgres():
128128
with connection.cursor() as cursor:
129-
cursor.execute(
130-
f"""
129+
cursor.execute(f"""
131130
UPDATE {LogEntry._meta.db_table}
132131
SET changes="changes_text"::jsonb
133132
WHERE changes_text IS NOT NULL
134133
AND changes_text <> ''
135134
AND changes IS NULL
136-
"""
137-
)
135+
""")
138136
return cursor.cursor.rowcount
139137

140138
if database == "postgres":

0 commit comments

Comments
 (0)