title: Access Django model's fields using a string instead of dot syntax?
body: <p>In Django, I can do this:</p>
  
  <pre><code>test = Test.objects.get(id=1)
  test.name
  </code></pre>
  
  <p>I want to be able to access the properties using dynamically generated strings, like this:</p>
  
  <pre><code>test['name']
  </code></pre>
  
  <p>or, any other syntax using a string.  I tried</p>
  
  <pre><code>test._meta.get_field_by_name('name')
  </code></pre>
  
  <p>but this returns the field itself and not the value.</p>
  
  <p>Any ideas?</p>