36 #: a specific answer to a single Question. An Answer must always |
36 #: a specific answer to a single Question. An Answer must always |
37 #: be associated with a Question in order to be interpreted. |
37 #: be associated with a Question in order to be interpreted. |
38 #: It is currently unclear how useful this back-reference will be, |
38 #: It is currently unclear how useful this back-reference will be, |
39 #: since the same question could be used in multiple different |
39 #: since the same question could be used in multiple different |
40 #: Review "templates". Given this, 'answers' currently only exists |
40 #: Review "templates". Given this, 'answers' currently only exists |
41 #: for completeness. |
41 #: for completeness. |
42 question = db.ReferenceProperty(reference_class=models.question.Question, |
42 # TODO: Uncomment when Question model is committed |
43 required=True, collection_name="answers") |
43 #question = db.ReferenceProperty(reference_class=models.question.Question, |
|
44 # required=True, collection_name="answers") |
44 |
45 |
45 #: A required many:1 relationship, where each of many Answers to |
46 #: A required many:1 relationship, where each of many Answers to |
46 #: different Questions represents the answer set of a specific |
47 #: different Questions represents the answer set of a specific |
47 #: Review. The back-reference in the Review model is a Query named |
48 #: Review. The back-reference in the Review model is a Query named |
48 #: 'answers' which represents all of the specific answers to |
49 #: 'answers' which represents all of the specific answers to |