web/views/formrenderers.py
changeset 8696 0bb18407c053
parent 8445 594efcf51536
child 9717 a6834e2dcc1b
--- a/web/views/formrenderers.py	Thu Feb 14 15:38:25 2013 +0100
+++ b/web/views/formrenderers.py	Thu Feb 14 16:01:24 2013 +0100
@@ -238,8 +238,8 @@
         if form.fieldsets_in_order:
             fieldsets = form.fieldsets_in_order
         else:
-            fieldsets = byfieldset.keys()
-        for fieldset in fieldsets:
+            fieldsets = byfieldset.iterkeys()
+        for fieldset in list(fieldsets):
             try:
                 fields = byfieldset.pop(fieldset)
             except KeyError: