# HG changeset patch # User Sverre Rabbelier # Date 1235300068 0 # Node ID 27e4b7ff22467f41f08983daab387c14c8c7d32d # Parent 623858110d93cc857d3f00949b707493eaec0141 Specify example_text for backup admin link id Patch by: Sverre Rabbelier diff -r 623858110d93 -r 27e4b7ff2246 app/soc/views/models/group_app.py --- 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'), }