0
如何從兩個型號中搜索Haystack?從兩個型號中搜索Haystack
class People(models.Model):
name = models.CharField(max_length=100)
description = models.TextField()
def __unicode__(self):
return self.name
class Note(models.Model):
user = models.ForeignKey(CustomUser)
title = models.CharField(max_length=200)
body = models.TextField()
pub_date = models.DateTimeField()
def __unicode__(self):
return self.title
實施兩個索引沒有幫助。
您能否請在此澄清您的答案:http://stackoverflow.com/questions/26668796/get-results-from-two-模型在haystack-whoosh。我會很感激。在這裏我發佈了更多我的代碼。 – Rodrigue 2014-11-03 10:51:26