code: def CourseOfDept(request):
  	
  	dept = request.GET['dept']
  	school = request.GET['school']
  	c = Course(school=school)
  	return JsonResponse(c.getByDept(dept=dept, grade=request.GET['grade'] if 'grade' in request.GET else None), safe=False)
docs: Generate list of obligatory and optional course of specific Dept.