Added key_order to student proposal to enable csv export
We need to add it to organization.py rather than to student_proposal
because otherwise students could see the score and status of their
proposals by using the csv export functionality.
Patch by: "Matthew Wilkes" <matthew@matthewwilkes.co.uk>
Reviewed by: Sverre Rabbelier
--- a/app/soc/views/models/organization.py Mon Apr 06 22:54:11 2009 +0000
+++ b/app/soc/views/models/organization.py Mon Apr 06 22:54:31 2009 +0000
@@ -217,6 +217,10 @@
list_params = student_proposal_view.view.getParams().copy()
list_params['list_template'] = 'soc/student_proposal/list_for_org.html'
+ list_params['list_key_order'] = [
+ 'title', 'abstract', 'content', 'additional_info', 'mentor',
+ 'possible_mentors', 'score', 'status', 'created_on',
+ 'last_modified_on']
ranked_params = list_params.copy()# ranked proposals
ranked_params['list_row'] = ('soc/%(module_name)s/list/'