Fixed error occuring when tags list was empty in GHOPProgram edit View.
authorLennard de Rijk <ljvderijk@gmail.com>
Thu, 17 Sep 2009 21:09:53 +0200
changeset 2940 ef809d10aaf1
parent 2939 415a7c2866fd
child 2941 5d2afe70420d
Fixed error occuring when tags list was empty in GHOPProgram edit View.
app/soc/modules/ghop/views/models/program.py
--- 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. '