Cleaned up the proposal data that gets put into a JSON object.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- a/app/soc/views/models/program.py Tue Mar 17 20:24:59 2009 +0000
+++ b/app/soc/views/models/program.py Tue Mar 17 20:51:07 2009 +0000
@@ -453,8 +453,6 @@
student_proposal_entities = student_proposal_logic.logic.getForFields(
fields, limit=slots_left_to_assign, order=order)
- proposal_data = {}
-
# store each proposal in the dictionary
for proposal in student_proposal_entities:
student_entity = proposal.scope
@@ -467,9 +465,6 @@
'org_key': org.key().name()
}
- # store it with the other org data
- proposals_data['proposals'] = proposal_data
-
# return all the data in JSON format
data = {'orgs': orgs_data,
'proposals': proposals_data}