1
0
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:
Marc Aymerich
2012-12-06 09:47:51 +01:00
committed by Claude Paroz
parent 37abad73d6
commit 553838a285
3 changed files with 6 additions and 2 deletions

View File

@@ -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):