예제 #1
0
파일: views.py 프로젝트: danfreak/confista
def display_schedule(request):
    halls, hall_count, slots, schedule_matrix = get_schedule(Day.objects.all(),
                                                             Hall.objects.all().order_by('id'),
                                                             Slot.objects.all())

    return render(request, 'schedule/display_schedule.html', 
                  {"halls": halls,
                   "hall_count": hall_count,
                   "slots": slots,
                   "schedule_data": schedule_matrix,
                   })
예제 #2
0
파일: views.py 프로젝트: danfreak/confista
def display_schedule_by_hall(request, day, hall):
    halls, hall_count, slots, schedule_matrix = get_schedule(Day.objects.filter(id=day),
                                                             Hall.objects.filter(id=hall),
                                                             Slot.objects.filter(
                                                             Q(hall__id=hall) & Q(day__id=day)))

    return render(request, 'schedule/display_schedule.html',
                  {"halls": halls,
                   "hall_count": hall_count,
                   "slots": slots,
                   "schedule_data": schedule_matrix,
                   })
예제 #3
0
파일: views.py 프로젝트: nsryan2/confista
def display_schedule_by_hall(request, day, hall):
    halls, hall_count, slots, schedule_matrix = get_schedule(
        Day.objects.filter(id=day), Hall.objects.filter(id=hall),
        Slot.objects.filter(Q(hall__id=hall) & Q(day__id=day)))

    return render(
        request, 'schedule/display_schedule.html', {
            "halls": halls,
            "hall_count": hall_count,
            "slots": slots,
            "schedule_data": schedule_matrix,
        })
예제 #4
0
파일: views.py 프로젝트: nsryan2/confista
def display_schedule(request):
    halls, hall_count, slots, schedule_matrix = get_schedule(
        Day.objects.all(),
        Hall.objects.all().order_by('id'), Slot.objects.all())

    return render(
        request, 'schedule/display_schedule.html', {
            "halls": halls,
            "hall_count": hall_count,
            "slots": slots,
            "schedule_data": schedule_matrix,
        })