mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +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
@@ -451,6 +451,7 @@ class Link(models.Model):
|
||||
posted = models.DateField(default=link_posted_default)
|
||||
url = models.URLField()
|
||||
post = models.ForeignKey("Post", models.CASCADE)
|
||||
readonly_link_content = models.TextField()
|
||||
|
||||
|
||||
class PrePopulatedPost(models.Model):
|
||||
@@ -468,6 +469,7 @@ class PrePopulatedSubPost(models.Model):
|
||||
class Post(models.Model):
|
||||
title = models.CharField(max_length=100, help_text="Some help text for the title (with unicode ŠĐĆŽćžšđ)")
|
||||
content = models.TextField(help_text="Some help text for the content (with unicode ŠĐĆŽćžšđ)")
|
||||
readonly_content = models.TextField()
|
||||
posted = models.DateField(
|
||||
default=datetime.date.today,
|
||||
help_text="Some help text for the date (with unicode ŠĐĆŽćžšđ)"
|
||||
|
||||
Reference in New Issue
Block a user