app/soc/models/project_survey.py
changeset 2461 c3e3df63e683
parent 2444 6276c3340c30
child 2493 0aabd2d76606
equal deleted inserted replaced
2460:b8b0c631bcfe 2461:c3e3df63e683
    32 
    32 
    33   def __init__(self, *args, **kwargs):
    33   def __init__(self, *args, **kwargs):
    34     super(ProjectSurvey, self).__init__(*args, **kwargs)
    34     super(ProjectSurvey, self).__init__(*args, **kwargs)
    35     self.prefix = 'program'
    35     self.prefix = 'program'
    36     self.taking_access = 'student'
    36     self.taking_access = 'student'
    37     self.scope = Program.get_by_key_name(self.scope_path)
       
    38 
    37 
    39   def getRecords(self):
    38   def getRecords(self):
    40     """Returns all ProjectSurveyRecords belonging to this survey.
    39     """Returns all ProjectSurveyRecords belonging to this survey.
    41     """
    40     """
    42     return self.project_survey_records
    41     return self.project_survey_records