Formats date to display only day of week
authorThadeu Lima de Souza Cascardo <cascardo@vespa.holoscopio.com>
Tue, 9 Oct 2007 17:10:24 +0000 (14:10 -0300)
committerThadeu Lima de Souza Cascardo <cascardo@vespa.holoscopio.com>
Tue, 9 Oct 2007 17:10:24 +0000 (14:10 -0300)
templates/programacao.html

index cbad7f6..35d9d02 100644 (file)
@@ -5,7 +5,7 @@
 
 <!--<h2>{{ dados_usuario.nome }}</h2>-->
     {% for p in aprovadas %}
-    {% ifchanged p.dia %} {{ p.dia }} {% endifchanged %}
+    {% ifchanged p.dia %} {{ p.dia|date:"l" }} {% endifchanged %}
     <span style="font-size:12pt"><a href="/palestra/{{p.id}}/" style="color:#333;">{{p.titulo}}</a></span>
         <br />
         <span style="font-weight:bolder;margin-left:15px">Palestrante{{ p.palestrante.all|pluralize }}:</span>