title: django: getattr function (get field name)
body: <p>I can't make the function getattr work. Here is my code:</p>
  
  <pre><code>print ConfigConsModel()._meta.get_all_field_names() #['codesectrepmodel', 'configCons', 'id']
  modelInstance=ConfigConsModel()
  newAttrName1=getattr(modelInstance, "configCons")
  print newAttrName1 #empty -&gt; PB
  </code></pre>
  
  <p>What's wrong?</p>