title: How to insert a new field in a queryset object?
body: <p>I have this in my models:</p>
  
  <pre><code>class Product(models.Model):
      name = models.CharField(max_length=50)
      category = models.ForeignKey(Categoria)
      price = models.DecimalField()
  
      def __str__(self):
          return self.name
  
      def dollar_price(self, dollar_price):
          return self.price * dollar_price
  </code></pre>
  
  <p>And I want to get my dollar_price per Product in the views:</p>
  
  <pre><code>def products(request):
      p = Product.objects.all()
      dollar = 10
      for product in p:
          dollar_price = product.dollar_price(dollar)
          p[product].new_field = dollar_price # This line is the problem
      return render(request, "main/products.html", {"p":p})
  </code></pre>
  
  <p>On the line where I put the comment, I know that I can't do that, but I want to create a new field of that "p" object and fill it with that "dollar_price".</p>
  
  <p>How can I do something similar?</p>