Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 14 lines (11 sloc) 0.516 kB
e428a00 @evildmp committing all files (I hope)
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 @evildmp committing all files (I hope)
authored
5
6 schema.register(models.NewsArticle, search_fields=admin.NewsArticleAdmin.search_fields,
b72d920 @evildmp search uses summary fo metadata now
authored
7 metadata='summary', heading='"Related news"',
8 short_text = 'short_title', description='summary',
e428a00 @evildmp committing all files (I hope)
authored
9 )
10 schema.register(models.Event, search_fields=admin.EventAdmin.search_fields,
b72d920 @evildmp search uses summary fo metadata now
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.