Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 14 lines (11 sloc) 0.516 kb
1 2 3 4 5 6 7 8 9 10 11 12 13
# register all interesting models for search

from news_and_events import models, admin
from links import schema, LinkWrapper

schema.register(models.NewsArticle, search_fields=admin.NewsArticleAdmin.search_fields,
    metadata='summary', heading='"Related news"',
    short_text = 'short_title', description='summary',
    )
schema.register(models.Event, search_fields=admin.EventAdmin.search_fields,
    metadata='summary', heading='"Related events"',
    short_text = 'short_title', description='summary',
    )
Something went wrong with that request. Please try again.