title: AttributeError: 'QuerySet' object has no attribute 'product' ERROR
body: <p>Hi I'm building a Webshop with a cart and checkout function. Now I'm trying to add the products and their quantity to an Email form which I want to send to an email obviously but I don't know how I could get the item.name or the item.quantity without getting an error as shown below.</p>
  <p>I have the following models:</p>
  <pre><code>class Customer(models.Model):
      user = models.OneToOneField(User, null=True, blank=True, on_delete=models.CASCADE)
      name = models.CharField(max_length=200, null=True)
      email = models.CharField(max_length=200)
  
      def __str__(self):
          return self.name
  
  
  class Product(models.Model):
      name = models.CharField(max_length=200, null=True)
      price = models.FloatField()
      digital = models.BooleanField(default=False, null=True, blank=False)  # Nicht nötig
      image = models.ImageField(null=True, blank=True)
  
      def __str__(self):
          return self.name
  
      @property
      def imageURL(self):
          try:
              url = self.image.url
          except:
              url = ''
          return url
  
  
  class Order(models.Model):
      customer = models.ForeignKey(Customer, on_delete=models.SET_NULL, blank=True, null=True)
      date_ordered = models.DateTimeField(auto_now_add=True)
      complete = models.BooleanField(default=False, null=True, blank=False)
      transaction_id = models.CharField(max_length=200, null=True)
  
      def __str__(self):
          return str(self.id)
  
      @property
      def get_cart_total(self):
          orderitems = self.orderitem_set.all()
          total = sum([item.get_total for item in orderitems])
          return total
  
      @property
      def get_cart_items(self):
          orderitems = self.orderitem_set.all()
          total = sum([item.quantity for item in orderitems])
          return total
  
  
  
  class OrderItem(models.Model):
      product = models.ForeignKey(Product, on_delete=models.SET_NULL, null=True)
      order = models.ForeignKey(Order, on_delete=models.SET_NULL, null=True)
      quantity = models.IntegerField(default=0, null=True, blank=True)
      date_added = models.DateTimeField(auto_now_add=True)
  
      @property
      def get_total(self):
          total = self.product.price * self.quantity
          return total
  
  </code></pre>
  <p>So I'm trying to get the product name and quantity from an Query set. But I get an error as described in the title</p>
  <blockquote>
  <p>AttributeError: 'QuerySet' object has no attribute 'product'.</p>
  </blockquote>
  <p>I'm trying to append the product name and quantity a customer has selected to a message variable which will be send to an email with sendmail().</p>
  <p>This is my view:</p>
  <pre><code>@login_required(login_url='login')
  def checkout(request):
      if request.method == &quot;POST&quot;:
          message_name = request.POST['message-name']
          message_email = request.POST['message-email']
          message = request.POST['message']
          message_to_send = str(message)
          # send an email
          send_mail(
               'message from ' + message_name,  # subject
               message_to_send,  # message
               message_email,  # from email
               ['jeampo@outlook.de'],  # To Email
          )
      if request.user.is_authenticated:
          customer = request.user.customer
          order, created = Order.objects.get_or_create(customer=customer, complete=False)
          items = order.orderitem_set.all()
          cartItems = order.get_cart_items
          print(items.product.name)
          print(items.quantity)
  
      context = {'items': items, 'order': order, 'cartItems': cartItems}
      return render(request, 'store/checkout.html', context)
  </code></pre>
  <p>Thank you for any help.</p>