equal
deleted
inserted
replaced
77 new_params['list_heading'] = 'soc/organization/list/heading.html' |
77 new_params['list_heading'] = 'soc/organization/list/heading.html' |
78 |
78 |
79 new_params['application_logic'] = org_app_logic |
79 new_params['application_logic'] = org_app_logic |
80 new_params['group_applicant_url'] = True |
80 new_params['group_applicant_url'] = True |
81 |
81 |
82 #TODO(ljvderijk) add cleaning methods to not overwrite existing orgs |
|
83 new_params['create_extra_dynafields'] = { |
82 new_params['create_extra_dynafields'] = { |
84 'scope_path': forms.CharField(widget=forms.HiddenInput, |
83 'scope_path': forms.CharField(widget=forms.HiddenInput, |
85 required=True), |
84 required=True), |
86 'clean_link_id': cleaning.clean_link_id('link_id'), |
85 'clean' : cleaning.validate_new_group('link_id', 'scope_path', |
87 } |
86 soc.logic.models.organization, org_app_logic)} |
|
87 |
|
88 # get rid of the clean method |
|
89 new_params['edit_extra_dynafields'] = { |
|
90 'clean' : (lambda x: x.cleaned_data)} |
88 |
91 |
89 params = dicts.merge(params, new_params) |
92 params = dicts.merge(params, new_params) |
90 |
93 |
91 super(View, self).__init__(params=params) |
94 super(View, self).__init__(params=params) |
92 |
95 |