mirror of
https://github.com/django/django.git
synced 2025-10-25 22:56:12 +00:00
Fixed #19429 -- Applied linebreaksbr to read-only fields in inlines
Applied to inlines what ec9d6b1122 did for main fieldsets.
This commit is contained in:
committed by
Claude Paroz
parent
37abad73d6
commit
553838a285
@@ -346,7 +346,10 @@ class LinkInline(admin.TabularInline):
|
||||
model = Link
|
||||
extra = 1
|
||||
|
||||
readonly_fields = ("posted",)
|
||||
readonly_fields = ("posted", "multiline")
|
||||
|
||||
def multiline(self, instance):
|
||||
return "InlineMultiline\ntest\nstring"
|
||||
|
||||
|
||||
class SubPostInline(admin.TabularInline):
|
||||
|
||||
Reference in New Issue
Block a user