Fixed error occuring when tags list was empty in GHOPProgram edit View.
--- a/app/soc/modules/ghop/views/models/program.py Thu Sep 17 17:31:40 2009 +0200
+++ b/app/soc/modules/ghop/views/models/program.py Thu Sep 17 21:09:53 2009 +0200
@@ -143,18 +143,20 @@
super(View, self).__init__(params=params)
dynafields = [
- {'name': 'task_difficulties',
+ {'name': 'overview_task_difficulties',
'base': forms.CharField,
'label': 'Task Difficulty Levels',
+ 'group': 'Task Settings',
'widget': widgets.ReadOnlyInput(),
'required': False,
'help_text': ugettext('Lists all the difficulty levels that '
'can be assigned to a task. Edit them '
'from the Program menu on sidebar.'),
},
- {'name': 'task_types',
+ {'name': 'overview_task_types',
'base': forms.CharField,
'label': 'Task Type Tags',
+ 'group': 'Task Settings',
'widget': widgets.ReadOnlyInput(),
'required': False,
'help_text': ugettext('Lists all the types a task can be in. '