title: Peewee - Determining meta data about Model at run time
body: <pre><code>class Foo(Model):
      bar = CharField()
      baz = CharField()
      class Meta:
          database = db
  
  &lt;body&gt;
      Create a new Foo:
      &lt;input type="text" name="bar" /&gt;
      &lt;input type="text" name="baz" /&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Instead of hard coding the input fields in the html, I would like to be able to determine at run time the names, data types, and other meta data about the fields in a model, and pass them to the html template to loop over.</p>