mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
python: Reformat with Black, except quotes.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
5028c081cb
commit
11741543da
@@ -96,11 +96,13 @@ def update_realmauditlog_values(apps: StateApps, schema_editor: DatabaseSchemaEd
|
||||
# Sanity check that the original event has exactly the keys we expect.
|
||||
assert set(extra_data.keys()) <= {OLD_VALUE, NEW_VALUE}
|
||||
|
||||
ra.extra_data = json.dumps({
|
||||
OLD_VALUE: old_value,
|
||||
NEW_VALUE: new_value,
|
||||
"property": prop,
|
||||
})
|
||||
ra.extra_data = json.dumps(
|
||||
{
|
||||
OLD_VALUE: old_value,
|
||||
NEW_VALUE: new_value,
|
||||
"property": prop,
|
||||
}
|
||||
)
|
||||
ra.save(update_fields=["extra_data"])
|
||||
|
||||
|
||||
@@ -111,7 +113,7 @@ class Migration(migrations.Migration):
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RunPython(update_realmauditlog_values,
|
||||
reverse_code=migrations.RunPython.noop,
|
||||
elidable=True),
|
||||
migrations.RunPython(
|
||||
update_realmauditlog_values, reverse_code=migrations.RunPython.noop, elidable=True
|
||||
),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user