app/soc/views/models/project_survey.py
changeset 2591 6c57c482f913
parent 2576 7a1138f8a0e2
child 2596 56924ec61cd2
equal deleted inserted replaced
2590:f0d0c9e7b2d4 2591:6c57c482f913
   145     # retrieve the project using the key name in the GET param
   145     # retrieve the project using the key name in the GET param
   146     get_dict = request.GET
   146     get_dict = request.GET
   147     project_entity = student_project_logic.getFromKeyName(get_dict['project'])
   147     project_entity = student_project_logic.getFromKeyName(get_dict['project'])
   148 
   148 
   149     # update the properties that will be stored with the referenced project
   149     # update the properties that will be stored with the referenced project
   150     properties.update(project=project_entity)
   150     properties.update(project=project_entity, org=project_entity.scope)
   151 
   151 
   152   def _constructFilterForProjectSelection(self, survey, params):
   152   def _constructFilterForProjectSelection(self, survey, params):
   153     """Returns the filter needed for the Project selection view.
   153     """Returns the filter needed for the Project selection view.
   154 
   154 
   155     Returns a filter for all the valid projects for which the current user
   155     Returns a filter for all the valid projects for which the current user