mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-12 09:13:14 +00:00
Run force_text on searchable text
This commit is contained in:
parent
23c632b95a
commit
02e6e55f3e
1 changed files with 2 additions and 2 deletions
|
|
@ -361,7 +361,7 @@ class CharBlock(FieldBlock):
|
|||
super(CharBlock, self).__init__(**kwargs)
|
||||
|
||||
def get_searchable_content(self, value):
|
||||
return [value]
|
||||
return [force_text(value)]
|
||||
|
||||
|
||||
class URLBlock(FieldBlock):
|
||||
|
|
@ -380,7 +380,7 @@ class RichTextBlock(FieldBlock):
|
|||
return mark_safe('<div class="rich-text">' + expand_db_html(value) + '</div>')
|
||||
|
||||
def get_searchable_content(self, value):
|
||||
return [value]
|
||||
return [force_text(value)]
|
||||
|
||||
|
||||
class RawHTMLBlock(FieldBlock):
|
||||
|
|
|
|||
Loading…
Reference in a new issue