Make it possible to put fields at the end of the form
This is usefull for Terms of Service etc.
Patch by: Sverre Rabbelier
--- 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