summaryrefslogtreecommitdiff
path: root/pgweb/util/helpers.py
diff options
context:
space:
mode:
authorMagnus Hagander2019-01-21 09:42:05 +0000
committerMagnus Hagander2019-01-26 15:19:26 +0000
commita10eb6420bfe48ec51a73a04058b67d685b686b7 (patch)
treee2befc7cd05b12ae10ac8fc7ac8d5ac5ba1e170c /pgweb/util/helpers.py
parent9875fd8537b25ae69b67f0fd0ffdf8aada1ea250 (diff)
More generic changes from 2to3
Diffstat (limited to 'pgweb/util/helpers.py')
-rw-r--r--pgweb/util/helpers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pgweb/util/helpers.py b/pgweb/util/helpers.py
index 68628ce6..f4fee7b4 100644
--- a/pgweb/util/helpers.py
+++ b/pgweb/util/helpers.py
@@ -34,7 +34,7 @@ def simple_form(instancetype, itemid, request, formclass, formtemplate='base/for
# Set fixed fields. Note that this will not work if the fixed fields are ManyToMany,
# but we'll fix that sometime in the future
if fixedfields:
- for k, v in fixedfields.items():
+ for k, v in list(fixedfields.items()):
setattr(r, k, v)
r.save()