Permalink
Browse files

apps.core.models.deadline: Docs.

  • Loading branch information...
espenak committed Jul 18, 2011
1 parent d0b692e commit 83600078860d3f7c2b21554dcb13c78aece29055
Showing with 9 additions and 7 deletions.
  1. +8 −6 devilry/apps/core/models/deadline.py
  2. +1 −1 docs/core.models.rst
@@ -14,10 +14,12 @@
class Deadline(models.Model, AbstractIsAdmin, AbstractIsExaminer, AbstractIsCandidate):
- """
+ """ A deadline on an `AssignmentGroup`_. A deadline contains zero or more
+ `deliveries <Delivery>`_, the time of the deadline and an optional text.
+
.. attribute:: assignment_group
- The assignment group where the deadline is registered.
+ The `AssignmentGroup`_ where the deadline is registered.
.. attribute:: deadline
@@ -27,11 +29,11 @@ class Deadline(models.Model, AbstractIsAdmin, AbstractIsExaminer, AbstractIsCand
A optional deadline text.
- .. attribute:: deliveries
+ .. attribute:: deliveries
- A django ``RelatedManager`` that holds the :class:`deliveries <devilry.apps.core.models.Delivery>` on this group.
+ A django ``RelatedManager`` that holds the `deliveries <Delivery>`_ on this group.
- .. attribute:: status
+ .. attribute:: status
The status of this deadline. The data can be deduces from other data in the database, but
since this requires complex queries, we store it as a integer
@@ -42,7 +44,7 @@ class Deadline(models.Model, AbstractIsAdmin, AbstractIsExaminer, AbstractIsCand
2. Corrected, not published
3. Corrected and published
- .. attribute:: feedbacks_published
+ .. attribute:: feedbacks_published
If this boolean field is ``True``, the student can see all
:class:`StaticFeedback` objects associated with this Deadline through a
View
@@ -115,7 +115,7 @@ AssignmentGroup
Deadline
#########################################################
-Each :class:`AssignmentGroup` have zero or more deadlines.
+Each `AssignmentGroup`_ have zero or more deadlines.
.. autoclass:: devilry.apps.core.models.Deadline

0 comments on commit 8360007

Please sign in to comment.