Commits

cur...@tinbrain.net  committed 6fc1f07

Added default CARTS setting

  • Participants
  • Parent commits 77c325a

Comments (0)

Files changed (1)

File session_cart/utils.py

 
 _carts = {}
 
+CARTS = getattr(settings, 'CARTS', {'default': 'session_cart.cart.CartItem'})
 
 def import_cart(import_path):
     """
         for key, value in settings.CARTS.items():
             _carts[key] = import_cart(value)
     return _carts
+