Added key_order to student proposal to enable csv export
authorSverre Rabbelier <srabbelier@gmail.com>
Mon, 06 Apr 2009 22:54:31 +0000
changeset 2103 45a50234e625
parent 2102 5bc22dd22ecb
child 2104 b9b6b35d80b6
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
app/soc/views/models/organization.py
--- 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/'