title: Django python setting initial values dynamically to form
body: <p>I'm building a small web service for inventory control. As part of this, I want to populate a detail view for any of the inventory items. This is what I have so far for that:</p>
  
  <pre class="lang-py prettyprint-override"><code>class Product_Update(forms.Form):
      Product_Code = forms.CharField(
          max_length=10,
          attrs={"placeholder = &lt;ID here&gt; Readonly = True"
      )
      Name = forms.CharField(max_length=100)
      Description = forms.Textarea(attrs={"Rows": 3})
      price = forms.DecimalField()
      mini = forms.IntegerField()
      Max = forms.IntegerField()
  </code></pre>
  
  <p>How do I pass the form the parameters?</p>