示例#1
0
def manager_dissertations_wait_comm_list(request):
    person = mdl.person.find_by_user(request.user)
    adv = adviser.search_by_person(person)
    offers = faculty_adviser.search_by_adviser(adv)
    offer_props = offer_proposition.search_by_offer(offers)
    all_advisers_array = str(adviser.convert_advisers_to_array(adviser.find_all_advisers()))
    show_validation_commission = offer_proposition.show_validation_commission(offer_props)
    show_evaluation_first_year = offer_proposition.show_evaluation_first_year(offer_props)
    return layout.render(request, 'manager_dissertations_wait_commission_list.html',
                         {'show_validation_commission': show_validation_commission,
                          'STATUS_CHOICES': STATUS_CHOICES,
                          'show_evaluation_first_year': show_evaluation_first_year,
                          'all_advisers_array': all_advisers_array})
示例#2
0
def manager_dissertations_wait_comm_list(request):
    offer_props = OfferProposition.objects.filter(
        education_group__facultyadviser__adviser__person__user=request.user
    ).distinct()
    all_advisers_array = str(
        adviser.convert_advisers_to_array(
            adviser.Adviser.objects.all().select_related('person')))
    show_validation_commission = offer_proposition.show_validation_commission(
        offer_props)
    show_evaluation_first_year = offer_proposition.show_evaluation_first_year(
        offer_props)
    return render(
        request, 'manager_dissertations_wait_commission_list.html', {
            'show_validation_commission': show_validation_commission,
            'STATUS_CHOICES': dissertation_role_status.STATUS_CHOICES,
            'show_evaluation_first_year': show_evaluation_first_year,
            'all_advisers_array': all_advisers_array
        })
示例#3
0
def find_adviser_list_json(request):
    term_search = request.GET.get('term')
    advisers = adviser.find_advisers_last_name_email(term_search, MAX_RETURN)
    response_data = adviser.convert_advisers_to_array(advisers)
    return JsonResponse(response_data, safe=False)