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.

intranet.apps.eighth.context_processors.enable_waitlist(request)[source]

Add whether the waitlist is enabled to the context.

Parameters:

request – The request object

Returns:

Whether the waitlist is enabled.

Return type:

bool

intranet.apps.eighth.context_processors.start_date(request)[source]

Add the start date to the context for eighth admins.

Parameters:

request – The request object

Returns:

The start date if an eighth_admin, an empty dictionary otherwise.