我试图在类BaseClass的搜索中包含一个字段,我想在Subclass类中搜索一个字段,该类继承自具有BaseClass的Orderable和ParentalKey类,如何在search_field中添加子类的字段
class BaseClass(Page):
header = models.CharField(max_length=255, blank=True)
search_fields = Page.search_fields + [
index.SearchField('title', partial_match=True)]
class SubClass(Orderable):
article = ParentalKey('BaseClass',on_delete=models.CASCADE,
related_name='article_description')
body = RichTextUploadingField(_('Body'), blank=True)