Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

# -*- coding: utf-8 -*- 

""" 

This overrides the Product model with the class loaded from the 

SHOP_PRODUCT_MODEL setting if it exists. 

""" 

from django.conf import settings 

from shop.util.loader import load_class 

 

 

#============================================================================== 

# Extensibility 

#============================================================================== 

PRODUCT_MODEL = getattr(settings, 'SHOP_PRODUCT_MODEL', 

    'shop.models.defaults.product.Product') 

Product = load_class(PRODUCT_MODEL, 'SHOP_PRODUCT_MODEL')