title: Django model iterator
body: <p>I have a pretty fundamental question about Django models. I have a model for clinic patients (inherits from models.Model) that consists of charfields, integerfields, one textfield, and one emailfield. The types associated with these fields are limited to ASCII characters (I think) so I don't believe any low-level redefinition <em>SHOULD</em> be necessary. Say, though, that I have a Patient object x. I want to be able to iterate through the various fields in that object and print the corresponding values to a template. I specifically do NOT want to hardcode the value/field names as I have been doing so far in case the model itself is altered later on. Example -> </p>
  
  <pre><code>{% for value in x %}
  &lt;p&gt; {{ value }} &lt;/p&gt;
  {% endfor %}
  </code></pre>
  
  <p>I understand that, as with almost any custom class, I must write an __ <strong>iter</strong> __ method to detail how to iterate through this Patient object. I do not know how to write this method. I do not know if I also need to write a __ <strong>next</strong> __ method. My attempts at creating something like this have been met with discouraging, almost disparaging errors. Please, help :)</p>