Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-ora2
Commits
4dcc2c71
Commit
4dcc2c71
authored
Feb 24, 2014
by
David Ormsbee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More docstrings to clarify peer models.
parent
1c84bf4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
apps/openassessment/peer/models.py
+22
-2
No files found.
apps/openassessment/peer/models.py
View file @
4dcc2c71
...
@@ -128,6 +128,10 @@ class CriterionOption(models.Model):
...
@@ -128,6 +128,10 @@ class CriterionOption(models.Model):
CriterionOptions have a name, point value, and explanation associated with
CriterionOptions have a name, point value, and explanation associated with
them. When you have to select between "Excellent", "Good", "Fair", "Bad" --
them. When you have to select between "Excellent", "Good", "Fair", "Bad" --
those are options.
those are options.
Note that this is the representation of the choice itself, *not* a
representation of a particular assessor's choice for a particular
Assessment. That state is stored in :class:`AssessmentPart`.
"""
"""
# All Criteria must have at least one CriterionOption.
# All Criteria must have at least one CriterionOption.
criterion
=
models
.
ForeignKey
(
Criterion
,
related_name
=
"options"
)
criterion
=
models
.
ForeignKey
(
Criterion
,
related_name
=
"options"
)
...
@@ -162,7 +166,13 @@ class CriterionOption(models.Model):
...
@@ -162,7 +166,13 @@ class CriterionOption(models.Model):
class
Assessment
(
models
.
Model
):
class
Assessment
(
models
.
Model
):
"""An evaluation made against a particular Submission and Rubric."""
"""An evaluation made against a particular Submission and Rubric.
This is student state information and is created when a student completes
an assessment of some submission. It is composed of :class:`AssessmentPart`
objects that map to each :class:`Criterion` in the :class:`Rubric` we're
assessing against.
"""
submission
=
models
.
ForeignKey
(
Submission
)
submission
=
models
.
ForeignKey
(
Submission
)
rubric
=
models
.
ForeignKey
(
Rubric
)
rubric
=
models
.
ForeignKey
(
Rubric
)
...
@@ -194,7 +204,17 @@ class Assessment(models.Model):
...
@@ -194,7 +204,17 @@ class Assessment(models.Model):
class
AssessmentPart
(
models
.
Model
):
class
AssessmentPart
(
models
.
Model
):
"""Part of an Assessment corresponding to a particular Criterion."""
"""Part of an Assessment corresponding to a particular Criterion.
This is student state -- `AssessmentPart` represents what the student
assessed a submission with for a given `Criterion`. So an example would be::
5 pts: "Excellent"
It's implemented as a foreign key to the `CriterionOption` that was chosen
by this assessor for this `Criterion`. So basically, think of this class
as :class:`CriterionOption` + student state.
"""
assessment
=
models
.
ForeignKey
(
Assessment
,
related_name
=
'parts'
)
assessment
=
models
.
ForeignKey
(
Assessment
,
related_name
=
'parts'
)
# criterion = models.ForeignKey(Criterion) ?
# criterion = models.ForeignKey(Criterion) ?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment