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.

conf.py 496B

1234567891011121314
  1. from oscar.core.loading import get_classes
  2. SingleProduct, RawHTML, Image, MultiImage, PagePromotion, \
  3. AutomaticProductList, HandPickedProductList = get_classes('promotions.models',
  4. ['SingleProduct', 'RawHTML', 'Image', 'MultiImage', 'PagePromotion',
  5. 'AutomaticProductList', 'HandPickedProductList'])
  6. def get_promotion_classes():
  7. return (RawHTML, Image, SingleProduct, AutomaticProductList,
  8. HandPickedProductList)
  9. PROMOTION_CLASSES = get_promotion_classes()