diff --git a/django/contrib/admin/templates/admin/includes/fieldset.html b/django/contrib/admin/templates/admin/includes/fieldset.html
index c8d08c8..09bc971 100644
a
|
b
|
|
14 | 14 | {% else %} |
15 | 15 | {{ field.label_tag }} |
16 | 16 | {% if field.is_readonly %} |
17 | | <p>{{ field.contents }}</p> |
| 17 | <p>{{ field.contents|linebreaksbr }}</p> |
18 | 18 | {% else %} |
19 | 19 | {{ field.field }} |
20 | 20 | {% endif %} |
diff --git a/tests/regressiontests/admin_views/tests.py b/tests/regressiontests/admin_views/tests.py
index 72dc6a3..1bbf60f 100644
a
|
b
|
class ReadonlyTest(TestCase):
|
3163 | 3163 | self.assertContains(response, '<p class="help">Some help text for the content (with unicode ŠĐĆŽćžšđ)</p>', html=True) |
3164 | 3164 | self.assertContains(response, '<p class="help">Some help text for the date (with unicode ŠĐĆŽćžšđ)</p>', html=True) |
3165 | 3165 | |
3166 | | p = Post.objects.create(title="I worked on readonly_fields", content="Its good stuff") |
| 3166 | new_post_title = "I worked on\n multiline\n readonly_fields" |
| 3167 | p = Post.objects.create(title=new_post_title, content="Its good stuff") |
3167 | 3168 | response = self.client.get('/test_admin/admin/admin_views/post/%d/' % p.pk) |
3168 | 3169 | self.assertContains(response, "%d amount of cool" % p.pk) |
3169 | | |
| 3170 | self.assertContains(response, new_post_title) |
| 3171 | |
3170 | 3172 | def test_readonly_post(self): |
3171 | 3173 | data = { |
3172 | 3174 | "title": "Django Got Readonly Fields", |