You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

search_indexes.py 304B

12345678910111213
  1. from haystack import site
  2. from oscar.apps.search.abstract_indexes import AbstractProductIndex
  3. from oscar.core.loading import import_module
  4. product_models = import_module('product.models', ['Item'])
  5. class ProductIndex(AbstractProductIndex):
  6. pass
  7. site.register(product_models.Item, ProductIndex)