# HG changeset patch # User Sverre Rabbelier # Date 1239058471 0 # Node ID 45a50234e6252b53221bf51a9a559fd1c5642ba8 # Parent 5bc22dd22ecb9bcfd10d1bfe6b6dc4df8093a995 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" Reviewed by: Sverre Rabbelier diff -r 5bc22dd22ecb -r 45a50234e625 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/'