title: Trying to pass a QuerySet as initial data to a formset
body: <p>I'm trying to build a page for an inventory system that will allow a user to update a quantity of items received.  </p>
  
  <p>I want to show a table of all products and let the user enter the quantity received, which I'll post and iterate over to update the database.</p>
  
  <p>Here is my view:</p>
  
  <pre><code>def new_shipment(request):
      list_of_active_products = Product.objects.filter(status=1)
      ShipmentFormSet = formset_factory(ShipmentForm, extra=0)
      formset = ShipmentFormSet(initial=list_of_active_products)
      return render_to_response('inventory/new_shipment.html', {'formset': formset})
  </code></pre>
  
  <p>Here's my model for the form:</p>
  
  <pre><code>class ShipmentForm(forms.Form):
      sku = forms.IntegerField()
      product_name = forms.CharField(max_length=100)
      quantity = forms.IntegerField()
  </code></pre>
  
  <p>And here is the form template:</p>
  
  <pre><code>&lt;form method="post" action=""&gt;
      &lt;table&gt;
          {% for form in formset %}
      {{ form }}
      {% endfor %}
      &lt;/table&gt;    
      &lt;input type="submit" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And here is the error I'm getting:</p>
  
  <p>Caught AttributeError while rendering: 'Product' object has no attribute 'get'</p>
  
  <p>Can anyone help me out with this?</p>