mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
[1.5.x] Fixed #19429 -- Applied linebreaksbr to read-only fields in inlines
Applied to inlines whatec9d6b1122did for main fieldsets. Backport of553838a28from master.
This commit is contained in:
committed by
Claude Paroz
parent
a8045c3af2
commit
57a41d985a
@@ -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