app/soc/views/models/group_app.py
changeset 1456 27e4b7ff2246
parent 1430 ff8cc6b15e6a
child 1504 f9d0bf275917
--- a/app/soc/views/models/group_app.py	Sun Feb 22 10:53:55 2009 +0000
+++ b/app/soc/views/models/group_app.py	Sun Feb 22 10:54:28 2009 +0000
@@ -86,10 +86,18 @@
     new_params['extra_dynaexclude'] = ['applicant', 'backup_admin', 'status',
         'created_on', 'last_modified_on']
 
+    new_params['create_dynafields'] = [
+        {'name': 'backup_admin_link_id',
+         'base': widgets.ReferenceField,
+         'passthrough': ['reference_url', 'required', 'label'],
+         'reference_url': 'user',
+         'required': False,
+         'label': params['logic'].getModel().backup_admin.verbose_name,
+         'example_text': ugettext('The link_id of the backup admin'),
+         },
+         ]
+
     new_params['create_extra_dynaproperties'] = {
-        'backup_admin_link_id': widgets.ReferenceField(
-              reference_url='user', required=False,
-              label=params['logic'].getModel().backup_admin.verbose_name),
         'clean_backup_admin_link_id': 
             cleaning.clean_users_not_same('backup_admin_link_id'),
         }