def get_items(self):
        self._update_product_amounts()
        cache_key = "%s-cart-items-%s" % (settings.CACHE_MIDDLEWARE_KEY_PREFIX, self.id)
        items = cache.get(cache_key)
        if items is None:
            items = CartItem.objects.select_related().filter(cart=self, product__active=True)
            # items = CartItem.objects.filter(cart=self)
            cache.set(cache_key, items)
        return items
Returns the items of the cart.
dataset/ETHPy150Open diefenbach/django-lfs/lfs/cart/models.py/Cart.get_items