1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

[1.5.x] Fixed #19429 -- Applied linebreaksbr to read-only fields in inlines

Applied to inlines what ec9d6b1122 did for main fieldsets.
Backport of 553838a28 from master.
This commit is contained in:
Marc Aymerich
2012-12-06 09:47:51 +01:00
committed by Claude Paroz
parent a8045c3af2
commit 57a41d985a
3 changed files with 6 additions and 2 deletions

View File

@@ -46,7 +46,7 @@
{% for field in line %}
<td{% if field.field.name %} class="field-{{ field.field.name }}"{% endif %}>
{% if field.is_readonly %}
<p>{{ field.contents }}</p>
<p>{{ field.contents|linebreaksbr }}</p>
{% else %}
{{ field.field.errors.as_ul }}
{{ field.field }}