Browse Source

Adiciona |safe nos campos do CRUD automático

pull/245/head
Edward Ribeiro 9 years ago
parent
commit
f97971faa4
  1. 2
      templates/crud/detail.html
  2. 2
      templates/crud/list.html

2
templates/crud/detail.html

@ -23,7 +23,7 @@
<div id="div_id_{{ column.id }}" class="form-group"> <div id="div_id_{{ column.id }}" class="form-group">
<p class="control-label">{{ column.verbose_name }}</p> <p class="control-label">{{ column.verbose_name }}</p>
<div class="controls"> <div class="controls">
<p class="form-control-static">{{ column.text }}</p> <p class="form-control-static">{{ column.text|safe }}</p>
</div> </div>
</div> </div>
</div> </div>

2
templates/crud/list.html

@ -33,7 +33,7 @@
{% if href %} {% if href %}
<a href="{{ href }}">{{ value }}</a> <a href="{{ href }}">{{ value }}</a>
{% else %} {% else %}
{{ value }} {{ value|safe }}
{% endif %} {% endif %}
</td> </td>
{% endfor %} {% endfor %}

Loading…
Cancel
Save