Commits

cur...@tinbrain.net  committed 8b33ab3

Fixed #3 Use _default_manager instead of objects

  • Participants
  • Parent commits ab6d359

Comments (0)

Files changed (1)

File 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