Exemple #1
0
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,
                   })
Exemple #2
0
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,
                   })
Exemple #3
0
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,
        })
Exemple #4
0
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,
        })