Skip to content

Commit

Permalink
Also added summary to search.py for Solango integration.
Browse files Browse the repository at this point in the history
  • Loading branch information
lethain committed Feb 27, 2009
1 parent a041c83 commit e888604
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions search.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@

class EntryDocument(solango.SearchDocument):
date = solango.fields.DateField()
summary = solango.fields.TextField(copy=True)
title = solango.fields.CharField(copy=True)
tags = solango.fields.CharField(copy=True)
content = solango.fields.TextField(copy=True)

def transform_summary(self, instance):
return instance.summary

def transform_tags(self, instance):
tags = list(instance.tags.all())
texts = [ tag.title for tag in tags ]
Expand Down

0 comments on commit e888604

Please sign in to comment.