mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Refs #25135 -- Removed support for the contrib.admin allow_tags attribute.
Per deprecation timeline.
This commit is contained in:
parent
7510b872e7
commit
d67a46e104
7 changed files with 7 additions and 80 deletions
|
@ -447,7 +447,7 @@ class PostAdmin(admin.ModelAdmin):
|
|||
readonly_fields = (
|
||||
'posted', 'awesomeness_level', 'coolness', 'value',
|
||||
'multiline', 'multiline_html', lambda obj: "foo",
|
||||
'multiline_html_allow_tags', 'readonly_content',
|
||||
'readonly_content',
|
||||
)
|
||||
|
||||
inlines = [
|
||||
|
@ -470,10 +470,6 @@ class PostAdmin(admin.ModelAdmin):
|
|||
def multiline_html(self, instance):
|
||||
return mark_safe("Multiline<br>\nhtml<br>\ncontent")
|
||||
|
||||
def multiline_html_allow_tags(self, instance):
|
||||
return "Multiline<br>html<br>content<br>with allow tags"
|
||||
multiline_html_allow_tags.allow_tags = True
|
||||
|
||||
|
||||
class FieldOverridePostForm(forms.ModelForm):
|
||||
model = FieldOverridePost
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue