Skip to content

Commit

Permalink
doc(eighth): add Args to context_processor
Browse files Browse the repository at this point in the history
docstrings
  • Loading branch information
theo-o committed Jul 23, 2019
1 parent c28dcd9 commit e898b98
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions intranet/apps/eighth/context_processors.py
Expand Up @@ -5,6 +5,9 @@
def start_date(request):
""" Add the start date to the context for eighth admins.
Args:
request: The request object
Returns:
The start date if an eighth_admin, an empty dictionary
otherwise.
Expand All @@ -20,6 +23,9 @@ def start_date(request):
def enable_waitlist(request):
""" Add whether the waitlist is enabled to the context.
Args:
request: The request object
Returns:
bool: Whether the waitlist is enabled.
Expand All @@ -31,6 +37,9 @@ def enable_waitlist(request):
def absence_count(request):
""" Add the absence count to the context for students.
Args:
request: The request object
Returns:
Number of absences that a student has if
a student, an empty dictionary otherwise.
Expand Down

0 comments on commit e898b98

Please sign in to comment.