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">
<p class="control-label">{{ column.verbose_name }}</p>
<div class="controls">
<p class="form-control-static">{{ column.text }}</p>
<p class="form-control-static">{{ column.text|safe }}</p>
</div>
</div>
</div>

2
templates/crud/list.html

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

Loading…
Cancel
Save