context_processors¶
Functions
- intranet.apps.eighth.context_processors.absence_count(request)[source]¶
Add the absence count to the context for students.
- Parameters:
request – The request object
- Returns:
Number of absences that a student has if a student, an empty dictionary otherwise.