title: Django Dropdown populate from database
body: <p>If I pass items to the template through the view, and I want the user to select one of the values that gets submitted to a user's record, I would only have dun a for loop in the template right?</p>
  
  <p>What would that look like?
  In the template:</p>
  
  <pre><code>&lt;form method="POST" 
  &lt;select&gt;
  
  &lt;/select&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Model: </p>
  
  <pre><code>class UserItem(models.Model):
      user = models.ForeignKey(User)
      item = models.ForeignKey(Item)
  
  
  class Item(models.Model):
      name = models.CharField(max_length = 50)
      condition = models.CharField(max_length = 50)
  </code></pre>
  
  <p>View:</p>
  
  <pre><code>def selectview(request):
     item  = Item.objects.filter()
     form = request.POST
     if form.is_valid():
        # SAVE 
  
     return render_to_response (
     'select/item.html',
      {'item':item},
      context_instance = RequestContext(request)
                 )
  </code></pre>