(context, active=True)
return {'timers': timers, 'perms': perms, 'next': request.path}
Get a list of active Timer instances to include in the nav menu.
    :param context: Django's context data.
    :param active: the state of Timers to filter.
    :returns: a dictionary with timers data.
Get a list of active Timer instances to include in the nav menu.
    :param context: Django's context data.
    :param active: the state of Timers to filter.
    :returns: a dictionary with timers data.
Get a list of active Timer instances to include in the nav menu . : param context : Django s context data . : param active : the state of Timers to filter . : returns : a dictionary with timers data .
def timer_nav(context, active=True):
    """
    Get a list of active Timer instances to include in the nav menu.
    :param context: Django's context data.
    :param active: the state of Timers to filter.
    :returns: a dictionary with timers data.
    """
    request = context['request'] or None
    timers = Timer.objects.filter(active=active)
    perms = context['perms'] or None
    # The 'next' parameter is currently not used.
    return {'timers': timers, 'perms': perms, 'next': request.path}
def timer_nav ( context , active = True ) : request = context [ 'request' ] or None timers = Timer . objects . filter ( active = active ) perms = context [ 'perms' ] or None # The 'next' parameter is currently not used. return { 'timers' : timers , 'perms' : perms , 'next' : request . path }