20 '"Todd Larsen" <tlarsen@google.com>', |
20 '"Todd Larsen" <tlarsen@google.com>', |
21 '"Sverre Rabbelier" <sverre@rabbelier.nl>', |
21 '"Sverre Rabbelier" <sverre@rabbelier.nl>', |
22 ] |
22 ] |
23 |
23 |
24 |
24 |
25 import polymodel |
|
26 |
|
27 from google.appengine.ext import db |
25 from google.appengine.ext import db |
28 |
26 |
29 import soc.models.question |
27 import soc.models.question |
30 import soc.models.quiz |
28 import soc.models.quiz |
31 import soc.models.response |
29 import soc.models.response |
32 |
30 |
|
31 from soc.models import base |
33 |
32 |
34 class Answer(polymodel.PolyModel): |
33 |
|
34 class Answer(base.ModelWithFieldAttributes): |
35 """Model of a specific Answer to a Question in a specific Response. |
35 """Model of a specific Answer to a Question in a specific Response. |
36 |
36 |
37 The properties in this Model do not have verbose_name or help_text, |
37 The properties in this Model do not have verbose_name or help_text, |
38 because the dynamic nature of the forms required to create, edit, and |
38 because the dynamic nature of the forms required to create, edit, and |
39 use entities of this Model make them pretty useless. |
39 use entities of this Model make them pretty useless. |