fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove legacy contact forms, move to forms-builder.
[wolnelektury.git]
/
src
/
contact
/
admin.py
diff --git
a/src/contact/admin.py
b/src/contact/admin.py
index
cf8d06c
..
98413f3
100644
(file)
--- a/
src/contact/admin.py
+++ b/
src/contact/admin.py
@@
-56,7
+56,7
@@
class ContactAdmin(admin.ModelAdmin, metaclass=ContactAdminMeta):
else:
# Create readonly fields from the body JSON.
attachments = list(instance.attachment_set.all())
else:
# Create readonly fields from the body JSON.
attachments = list(instance.attachment_set.all())
- body_keys =
body.keys(
) + [a.tag for a in attachments]
+ body_keys =
list(body.keys()
) + [a.tag for a in attachments]
# Find the original form.
try:
# Find the original form.
try: