mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #25465 -- Restored line breaks conversion in admin readonly fields.
This commit is contained in:
committed by
Tim Graham
parent
dbb0df2a0e
commit
69208a5a1c
@@ -387,7 +387,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"
|
||||
@@ -435,7 +435,7 @@ class PostAdmin(admin.ModelAdmin):
|
||||
readonly_fields = (
|
||||
'posted', 'awesomeness_level', 'coolness', 'value',
|
||||
'multiline', 'multiline_html', lambda obj: "foo",
|
||||
'multiline_html_allow_tags',
|
||||
'multiline_html_allow_tags', 'readonly_content',
|
||||
)
|
||||
|
||||
inlines = [
|
||||
|
||||
Reference in New Issue
Block a user