Commits

Anonymous committed b38563c

Fixed return value for middleware

Comments (0)

Files changed (2)

session_cart/middleware.py

 
         if 'default' in get_carts():
             request.cart = request.carts['default']
+        return None
 
     def process_response(self, request, response):
         """
 
     def process_request(self, request):
         request.cart = Cart(request)
-        return request
+        return None
 
     def process_response(self, request, response):
         if hasattr(request, 'cart'):
 from setuptools import setup, find_packages
 
 setup( name='session-cart',
-	version='1.0.1',
+	version='1.0.2',
 	description='A session-stored cart for Django',
 	author='Curtis Maloney',
 	author_email='curtis@tinbrain.net',