title: django inline formset to upload multiple files not rendering form
body: <p>I have model:</p>
  
  <pre><code>class MediaInfo(models.Model):
      title = models.CharField(max_length=50,blank=True)
      description = models.CharField(max_length=255,blank=True)
      media_file = models.FileField(upload_to=get_upload_file_name)
  
      def __unicode__(self):
          return self.title
  
  class Media(models.Model):
      media_files = models.ForeignKey(MediaInfo)
  
      def __unicode__(self):
          return self.media_files
  </code></pre>
  
  <p>What I want is to render a template where I get a simple browse button and I can select and upload multiple 'media_file'.</p>
  
  <p>I came to know that it can be performed from inline formset so used it in my view. My view looks like</p>
  
  <pre><code>def MediaAddView(request):
      #med = MediaInfo.objects.al()
      MediaInlineFormset = inlineformset_factory(MediaInfo, Media)
      if request.method == "POST":
          formset = MediaInlineFormset(request.POST, request.FILES)
          if formset.is_valid():
              formset.save()
              return HttpResponseRedirect("some url")
          else:
              return render_to_response("media_add.html",
                  {"formset":formset,},
                  context_instance=RequestContext(request))
      else:
          formset = MediaInlineFormset()
          return render_to_response("media_add.html", 
              {"formset":formset,}, context_instance=RequestContext(request))
  </code></pre>
  
  <p>and my template is :</p>
  
  <pre><code>&lt;form method="post" action="" enctype="multipart/form-data"&gt;
      {% csrf_token %}
      {{ formset.management_form }}
      {% for form in formset %}
          {{form.media_file}}
      {% endfor %}
  
      &lt;input type="submit" value="Submit" /&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>When I do this instead of getting a browse button to upload file I am getting only submit button.</p>
  
  <p>How can I get just a browse button and add multiple files or images ?</p>
  
  <p>Whats wrong in my code ?
  Need help</p>