title: Create Django dropdown form which allows users to select a model to submit
body: <p>Extreme noob here. I have been trying to create a simple form in Django where the user can select from the models that are present in the database and then click submit (whereupon I will then return a list of objects).</p>
  
  <p>However, I am getting the following error: <strong>'ModelBase' object is not iterable</strong>
  Note all I am trying to achieve so far is to actually render the form.</p>
  
  <p>Here is the code:</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;form action="." method=""&gt;
    {% csrf_token %}
  {% for field in output %}
  
      {{ output.as_p }}
  
  {% endfor %}
    &lt;input type="submit" value="Save" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>Forms.py</strong></p>
  
  <pre><code>from projectdb.models import *
  
  class TablesForm(forms.Form):
      models = models.get_models()
      select = forms.ChoiceField(choices=models)
  </code></pre>
  
  <p><strong>Views.py</strong></p>
  
  <pre><code>def output_form(request):
      form = TablesForm()
      return render(request, 'projectdb/output.html', {'output': form})
  </code></pre>
  
  <p>Much obliged for any help!</p>