@require_authorized_access_to_student_data
def student_view_context(request):
 user = get_user_from_request(request=request)
 if (not user):
  raise Http404('User not found.')
 context = {'facility_id': user.facility.id, 'student': user}
 return context

@ require_authorized_access_to_student_data def student_view_context ( request ) : user = get_user_from_request ( request = request ) if ( not user ) : raise Http404 ( 'User not found.' ) context = { 'facility_id' : user . facility . id , 'student' : user } return context
context done separately .