﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
25465	Line breaks in readonly field in admin tabular inline	Patrick Craston	nobody	"If a model TextField is rendered as read-only inside a included fieldset or an admin.TabularInline section, line breaks are ignored.

This is because of the changes made in https://github.com/django/django/commit/c94bff2b26f8844fe15d68a79511ff3a6853dc61 :
to these files:
django/contrib/admin/templates/admin/edit_inline/tabular.html
django/contrib/admin/templates/admin/includes/fieldset.html

Specifically the following code change in both files:
{{{
{% if field.is_readonly %}
-                  <p>{{ field.contents|linebreaksbr }}</p>
+                  <p>{{ field.contents }}</p>
}}}

The linebreaksbr template tag was removed but the django/contrib/admin/helpers.py:186 linebreaksbr function is only applied to custom ModelAdmin methods but not plain admin fields

Am I missing something or is this a bug?"	Bug	closed	contrib.admin	1.8	Normal	fixed	tabular inline		Ready for checkin	1	0	0	0	0	0
