search_indexes for festival
This commit is contained in:
parent
d8fc09f755
commit
a25e20da6c
|
@ -5,6 +5,8 @@ from models import *
|
||||||
|
|
||||||
class MeetingIndex(SearchIndex):
|
class MeetingIndex(SearchIndex):
|
||||||
text = CharField(document=True, use_template=True)
|
text = CharField(document=True, use_template=True)
|
||||||
|
title = CharField(model_attr='title')
|
||||||
|
intro = CharField(model_attr='intro')
|
||||||
|
|
||||||
'''
|
'''
|
||||||
def index_queryset(self):
|
def index_queryset(self):
|
||||||
|
@ -14,10 +16,15 @@ class MeetingIndex(SearchIndex):
|
||||||
|
|
||||||
class ProjectIndex(SearchIndex):
|
class ProjectIndex(SearchIndex):
|
||||||
text = CharField(document=True, use_template=True)
|
text = CharField(document=True, use_template=True)
|
||||||
|
title = CharField(model_attr='title')
|
||||||
|
intro = CharField(model_attr='intro')
|
||||||
|
|
||||||
|
|
||||||
class ParticipantIndex(SearchIndex):
|
class ParticipantIndex(SearchIndex):
|
||||||
text = CharField(document=True, use_template=True)
|
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)
|
site.register(Meeting, MeetingIndex)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user