title: Iterating through model fields - Django
body: <p>I'm trying to <strong>iterate through fields as they are written down within my model</strong>:</p>
  
  <p>currently I'm using this:</p>
  
  <pre><code>def attrs(self):
    for attr, value in self.__dict__.iteritems():
      yield attr, value
  </code></pre>
  
  <p>but the order seems pretty much <strong>random</strong> :(</p>
  
  <hr>
  
  <p>Any ideas?</p>