def post_install(self): collection = create_normalize_collection('event', u'Event', Event, create_display_field=True, create_filter_field=True) IncludeCollectionFilter.objects.get_or_create( collection=collection, filter_field='end', filter_operator='date_gt', ) # this way, we won't have in count the expired news
def post_install(self): create_normalize_collection( 'links', u'Links', Link, create_display_field=True, create_filter_field=True)
def post_install(self): create_normalize_collection('banners', u'Banners', Banner, create_display_field=True, create_filter_field=True)
def post_install(self): collection = create_normalize_collection('news', u'News', NewsItem, create_display_field=True, create_filter_field=True)
def post_install(self): collection = create_normalize_collection('event', u'Event', Event, create_display_field=True, create_filter_field=True)