equal
deleted
inserted
replaced
23 ] |
23 ] |
24 |
24 |
25 |
25 |
26 from google.appengine.ext import db |
26 from google.appengine.ext import db |
27 |
27 |
|
28 from soc.models.organization import Organization |
28 from soc.models.survey_record import SurveyRecord |
29 from soc.models.survey_record import SurveyRecord |
29 from soc.models.project_survey import ProjectSurvey |
30 from soc.models.project_survey import ProjectSurvey |
30 import soc.models.student_project |
31 import soc.models.student_project |
31 |
32 |
32 |
33 |
37 |
38 |
38 #: Reference to the Project that this record belongs to. |
39 #: Reference to the Project that this record belongs to. |
39 project = db.ReferenceProperty( |
40 project = db.ReferenceProperty( |
40 reference_class=soc.models.student_project.StudentProject, |
41 reference_class=soc.models.student_project.StudentProject, |
41 required=True, collection_name="survey_records") |
42 required=True, collection_name="survey_records") |
|
43 |
|
44 #: A many:1 relationship associating ProjectSurveyRecords |
|
45 #: with specific Organization. The back-reference in the |
|
46 #: Organization model is a Query named 'survey_records'. |
|
47 org = db.ReferenceProperty( |
|
48 reference_class=Organization, |
|
49 required=False, collection_name='survey_records') |