--- a/app/soc/views/models/program.py Wed Aug 26 18:37:35 2009 +0200
+++ b/app/soc/views/models/program.py Wed Aug 26 18:45:01 2009 +0200
@@ -158,8 +158,6 @@
'accepted_orgs_msg': forms.fields.CharField(
widget=helper.widgets.TinyMCE(attrs={'rows':10, 'cols':40})),
'scope_path': forms.CharField(widget=forms.HiddenInput, required=True),
- 'workflow': forms.ChoiceField(choices=[('gsoc','Project-based'),
- ('ghop','Task-based')], required=True),
}
reference_fields = [
@@ -181,8 +179,6 @@
filter_fields={'prefix': new_params['document_prefix']},
required=False, label=label, help_text=help_text)
- result['workflow'] = forms.CharField(widget=widgets.ReadOnlyInput(),
- required=True)
result['clean'] = cleaning.clean_refs(new_params,
[i for i,_,_ in reference_fields])
@@ -587,7 +583,7 @@
super(View, self)._editPost(request, entity, fields)
- if entity:
+ if not entity:
# there is no existing entity so create a new timeline
fields['timeline'] = self._params['logic'].createTimelineForType(fields)
else: