Skip to content
Newer
Older
100644 14 lines (11 sloc) 516 Bytes
e428a00 committing all files (I hope)
Daniele Procida authored
1 # register all interesting models for search
2
3 from news_and_events import models, admin
e1d6215 @evildmp post-ojii fixes
authored
4 from links import schema, LinkWrapper
e428a00 committing all files (I hope)
Daniele Procida authored
5
6 schema.register(models.NewsArticle, search_fields=admin.NewsArticleAdmin.search_fields,
b72d920 search uses summary fo metadata now
Daniele Procida authored
7 metadata='summary', heading='"Related news"',
8 short_text = 'short_title', description='summary',
e428a00 committing all files (I hope)
Daniele Procida authored
9 )
10 schema.register(models.Event, search_fields=admin.EventAdmin.search_fields,
b72d920 search uses summary fo metadata now
Daniele Procida authored
11 metadata='summary', heading='"Related events"',
12 short_text = 'short_title', description='summary',
5594c11 @evildmp temporarily saving state
authored
13 )
Something went wrong with that request. Please try again.