def dashboard(request): cases = applicationcase.get_application_cases_by_uid(request.user.id) jobs = job.get_jobs_by_user(request.user.id) return render_to_response( 'recruiter_home.html', {'cases': cases, 'jobs': jobs}, context_instance=RequestContext(request))
def list_jobs(request): jobs = [] try: jobs = job.get_jobs_by_user(request.user.id) except Exception as ex: print ex pass return render_to_response( 'list_jobs.html', {'jobs': jobs}, context_instance=RequestContext(request))