@enable_login_form
def programacao(request):
try:
- d = {'aprovadas': Trabalho.objects.filter(aprovado=True).order_by('dia','time_start')}
+ d = {'aprovadas': Trabalho.objects.filter(aprovado=True).order_by('dia', 'time_start', 'room')}
except ObjectDoesNotExist:
d = {}
return build_response(request, 'programacao.html',d)
@staff_member_required
def grade(request):
try:
- d = {'aprovadas': Trabalho.objects.filter(aprovado=True).order_by('dia', 'time_start')}
+ d = {'aprovadas': Trabalho.objects.filter(aprovado=True).order_by('dia', 'time_start', 'room')}
except ObjectDoesNotExist:
d = {}
return build_response(request, 'grade.html', d)