search_indexes for festival

This commit is contained in:
Sanj 2011-10-11 16:10:02 +05:30
parent d8fc09f755
commit a25e20da6c

View File

@ -5,6 +5,8 @@ from models import *
class MeetingIndex(SearchIndex):
text = CharField(document=True, use_template=True)
title = CharField(model_attr='title')
intro = CharField(model_attr='intro')
'''
def index_queryset(self):
@ -14,10 +16,15 @@ class MeetingIndex(SearchIndex):
class ProjectIndex(SearchIndex):
text = CharField(document=True, use_template=True)
title = CharField(model_attr='title')
intro = CharField(model_attr='intro')
class ParticipantIndex(SearchIndex):
text = CharField(document=True, use_template=True)
name = CharField(model_attr='name')
title = CharField(model_attr='title')
short_bio = CharField(model_attr='short_bio')
site.register(Meeting, MeetingIndex)