app/soc/models/quiz.py
changeset 342 72482d8e5b34
parent 339 b9be44e09530
child 351 b37fc4c1e189
equal deleted inserted replaced
341:cad57d104bc7 342:72482d8e5b34
    49 
    49 
    50     work.title:  the title of the Quiz
    50     work.title:  the title of the Quiz
    51 
    51 
    52     work.abstract:  summary displayed as a snippet in Quiz list views
    52     work.abstract:  summary displayed as a snippet in Quiz list views
    53 
    53 
    54     work.authors:  the Authors of the Work referred to by this relation
    54     work.author:  the author of the Work referred to by this relation
    55       are the authors of the Quiz (but not necessarily the individual
    55       is the author of the Quiz (but not necessarily the individual
    56       Questions themselves, see the Question Model)
    56       Questions themselves, see the Question Model)
    57 
    57 
    58     work.reviews:  even Quizzes can be "reviewed" (possibly commented
    58     work.reviews:  even Quizzes can be "reviewed" (possibly commented
    59       on during creation or annotated once put into use).
    59       on during creation or annotated once put into use).
    60 
    60 
    83       gets paid.  The desired Answer for this Question would be
    83       gets paid.  The desired Answer for this Question would be
    84       associated with the Quiz via the 'quiz' property and some controller
    84       associated with the Quiz via the 'quiz' property and some controller
    85       logic could check if a survey "passed" by querying for these
    85       logic could check if a survey "passed" by querying for these
    86       "solution" Answers and seeing if the survey Response had the "right"
    86       "solution" Answers and seeing if the survey Response had the "right"
    87       Answers (to the one Question that matters in this case...).
    87       Answers (to the one Question that matters in this case...).
       
    88 
       
    89     proposals)  a 1:many relationship where each Quiz can produce all of
       
    90       the Proposals that make use of the Quiz as part of the Proposal.
       
    91       This relation is implemented as the 'proposals' back-reference Query
       
    92       of the Proposal Model 'quiz' reference.
    88   """
    93   """
    89   
    94   
    90   #: a many:many relationship (many:many because a given Question can be
    95   #: a many:many relationship (many:many because a given Question can be
    91   #: reused in more than one Quiz, and each Quiz is made up of one or more
    96   #: reused in more than one Quiz, and each Quiz is made up of one or more
    92   #: Questions) between Question entities and, when combined, the Quiz they
    97   #: Questions) between Question entities and, when combined, the Quiz they