Commits

Anonymous committed 8b33ab3

Fixed #3 Use _default_manager instead of objects

Comments (0)

Files changed (1)

session_cart/cart.py

     def add_item(self, item, quantity =1):
         '''Add a new item to this session'''
         if not isinstance(item, self.model):
-            item = self.model.objects.get(pk=item)
+            item = self.model._default_model.get(pk=item)
         # Dupe checking
         try:
             self[self.index(item)].quantity += quantity