text: from django.db import models
  from meadery.models import Product
  
  
  class CartItem(models.Model):
      cart_id = models.CharField(max_length=50)
      date_added = models.DateTimeField(auto_now_add=True)
      quantity = models.IntegerField(default=1)
      product = models.ForeignKey(Product, unique=False, on_delete=models.CASCADE)
  
      class Meta:
          ordering = ["date_added"]
  
      def name(self):
          return self.product.name
  
      def title(self):
          return self.product.title
  
      def get_absolute_url(self):
          return self.product.get_absolute_url()
  
      def augment_quantity(self, quantity):
          self.quantity = self.quantity + int(quantity)
          self.save()
  