app/soc/views/helper/params.py
changeset 1267 157c12589f79
parent 1227 38afecddfbed
child 1268 9d092b702f92
--- a/app/soc/views/helper/params.py	Wed Feb 11 20:55:17 2009 +0000
+++ b/app/soc/views/helper/params.py	Wed Feb 11 23:42:03 2009 +0000
@@ -243,6 +243,11 @@
     dynafields = params['create_dynafields'],
     )
 
+  if 'extra_key_order' in params:
+    for field in params['extra_key_order']:
+      create_form.base_fields.keyOrder.remove(field)
+    create_form.base_fields.keyOrder.extend(params['extra_key_order'])
+
   return create_form