mirror of
https://github.com/jazzband/django-auditlog.git
synced 2026-03-16 22:20:26 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
70e7d639c8
commit
9e770f5cae
1 changed files with 2 additions and 4 deletions
|
|
@ -126,15 +126,13 @@ class Command(BaseCommand):
|
|||
|
||||
def postgres():
|
||||
with connection.cursor() as cursor:
|
||||
cursor.execute(
|
||||
f"""
|
||||
cursor.execute(f"""
|
||||
UPDATE {LogEntry._meta.db_table}
|
||||
SET changes="changes_text"::jsonb
|
||||
WHERE changes_text IS NOT NULL
|
||||
AND changes_text <> ''
|
||||
AND changes IS NULL
|
||||
"""
|
||||
)
|
||||
""")
|
||||
return cursor.cursor.rowcount
|
||||
|
||||
if database == "postgres":
|
||||
|
|
|
|||
Loading…
Reference in a new issue