コード例 #1
0
ファイル: views.py プロジェクト: jakemalley/peri2organise
def staff():
    """
    All Staff.
    """
    # Select all of the staff members.
    all_staff = select_users_by_role('STA')
    # Render the template passing in the staff members.
    return render_template(
        'student/staff.html', staff=all_staff)
コード例 #2
0
ファイル: views.py プロジェクト: jakemalley/peri2organise
def tutors():
    """
    All Tutors.
    """
    # Select all of the tutors from the database.
    all_tutors = select_users_by_role('TUT')
    # Render the tutors template, passing in the tutors.
    return render_template(
        'student/tutors.html', tutors=all_tutors
    )