mirror of
https://github.com/django/django.git
synced 2025-10-28 08:06:09 +00:00
[1.8.x] Fixed #25465 -- Restored line breaks conversion in admin readonly fields.
Backport of 69208a5a1c from master
This commit is contained in:
committed by
Tim Graham
parent
bd746ae341
commit
83174866ac
@@ -382,7 +382,7 @@ class LinkInline(admin.TabularInline):
|
||||
model = Link
|
||||
extra = 1
|
||||
|
||||
readonly_fields = ("posted", "multiline")
|
||||
readonly_fields = ("posted", "multiline", "readonly_link_content")
|
||||
|
||||
def multiline(self, instance):
|
||||
return "InlineMultiline\ntest\nstring"
|
||||
@@ -429,7 +429,7 @@ class PostAdmin(admin.ModelAdmin):
|
||||
list_display = ['title', 'public']
|
||||
readonly_fields = (
|
||||
'posted', 'awesomeness_level', 'coolness', 'value',
|
||||
'multiline', 'multiline_html', lambda obj: "foo"
|
||||
'multiline', 'multiline_html', lambda obj: "foo", 'readonly_content',
|
||||
)
|
||||
|
||||
inlines = [
|
||||
|
||||
Reference in New Issue
Block a user