Added "dia" as a date type in "trabalhos" table
[cascardo/eventmanager.git] / views.py
index edd63e4..d15746b 100644 (file)
--- a/views.py
+++ b/views.py
@@ -420,7 +420,7 @@ def dados_palestra(request, codigo):
 @enable_login_form
 def programacao(request):
     try:
-        d = {'aprovadas': Trabalho.objects.filter(aprovado=True)}
+        d = {'aprovadas': Trabalho.objects.filter(aprovado=True).order_by('dia')}
     except ObjectDoesNotExist:
         d = {}
     return build_response(request, 'programacao.html',d)