title: using dictionary in OrderedDict in Django
body: <pre><code>trainer_dict = OrderedDict([('Smith', {'hour_5':'Julia','hour_1':'','hour_2','Kim'}),('Sam',{'hour_5':'','hour_1':'Anna','hour_2',''})])
  </code></pre>
  
  <p>How I use the value of hour_num (Julia, Kim, Anna) in the dictionary?  </p>
  
  <pre><code>for trainer in trainer_dict:
       trainer.hour_5
  </code></pre>
  
  <p>Above code has an error: 'str' objects has no attribute 'hour_5'.</p>
  
  <p>So, {{ trainer.hour_5}} show nothing in template.</p>
  
  <pre><code>for trainer in trainer_dict:
       trainer['hour_5'] 
  </code></pre>
  
  <p>has also an error: string indices must be integers.</p>
  
  <p>There is a dictionary in [()]. How I access the dictionary??</p>