add fts_fields for emailer
This commit is contained in:
parent
9d09df5e30
commit
ddf7de3840
|
@ -7,6 +7,7 @@ class EmailerIssue(ItfModel):
|
||||||
date = models.DateField()
|
date = models.DateField()
|
||||||
issue_no = models.IntegerField()
|
issue_no = models.IntegerField()
|
||||||
published = models.BooleanField(default=False)
|
published = models.BooleanField(default=False)
|
||||||
|
fts_fields = ['title', 'emailerarticle__text']
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
return self.title
|
return self.title
|
||||||
|
@ -14,6 +15,8 @@ class EmailerIssue(ItfModel):
|
||||||
class Meta:
|
class Meta:
|
||||||
ordering = ['-issue_no']
|
ordering = ['-issue_no']
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def info_dict(self):
|
def info_dict(self):
|
||||||
return {
|
return {
|
||||||
'issue': self,
|
'issue': self,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user