Skip to content

Commit 0d4d47e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d2c44ca commit 0d4d47e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unfold/templatetags/unfold.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ def changeform_data(adminform: AdminForm) -> str:
506506
else:
507507
fields.append(field.field.name)
508508

509-
return mark_safe(json.dumps({field: "" for field in fields}))
509+
return mark_safe(json.dumps(dict.fromkeys(fields, "")))
510510

511511

512512
@register.filter(takes_context=True)

0 commit comments

Comments
 (0)