Browse Source

Fix HTML code escape in rendering and lowercased resumo template name.

pull/7/head
Edward Ribeiro 9 years ago
parent
commit
ea291428d9
  1. 2
      sessao/views.py
  2. 2
      templates/sessao/materia_ordemdia_list.html
  3. 2
      templates/sessao/resumo.html

2
sessao/views.py

@ -658,7 +658,7 @@ class MesaView(FormMixin, sessao_crud.CrudDetailView):
class ResumoView(FormMixin, sessao_crud.CrudDetailView): class ResumoView(FormMixin, sessao_crud.CrudDetailView):
template_name = 'sessao/Resumo.html' template_name = 'sessao/resumo.html'
def get(self, request, *args, **kwargs): def get(self, request, *args, **kwargs):
self.object = self.get_object() self.object = self.get_object()

2
templates/sessao/materia_ordemdia_list.html

@ -18,7 +18,7 @@ Matérias da Ordem do Dia
</br> </br>
{{m.autor}} {{m.autor}}
</li> </li>
<li>{{m.ementa}}</li> <li>{{m.ementa|safe}}</li>
<li>{% if m.resultado %}{{m.resultado}}{% endif %}</li> <li>{% if m.resultado %}{{m.resultado}}{% endif %}</li>
{% endfor %} {% endfor %}
</ul> </ul>

2
templates/sessao/Resumo.html → templates/sessao/resumo.html

@ -111,7 +111,7 @@
<br /> <br />
{{m.autor}} {{m.autor}}
</li> </li>
<li>{{m.ementa}}</li> <li>{{m.ementa|safe}}</li>
<li>{{m.resultado}}</li> <li>{{m.resultado}}</li>
{% endfor %} {% endfor %}
</ul> </ul>
Loading…
Cancel
Save