Commits

Chris Beaven  committed c07d370 Merge

Merge upstream

  • Participants
  • Parent commits 8d1d174, 8b33ab3

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