title: Convert Django Queryset to Dict
body: <p>I'm trying to convert the following queryset into a dictionary that I can then parse via a html template.</p>
  
  <pre><code>team | season | type | scope | rank | value
  a    | 2018   | reg  | l5    | 5    | 0.118
  a    | 2018   | reg  | l10   | 6    | 1.251
  b    | 2018   | reg  | l5    | 20   | 0.005
  b    | 2018   | reg  | l10   | 15   | 3.058
  c    | 2018   | reg  | l5    | 35   | 0.785
  </code></pre>
  
  <p>The issue I'm running into is that I need all rows, and I can't filter down to the 1 instance I need.  I need to be able to place the values in specific spots in my template.  </p>
  
  <p>I'd like to turn the query set into a dictionary, at which point I could just reference: team[a].season[2018].type[reg].scope[l5].<strong>rank</strong> and team[a].season[2018].type[reg].scope[l5].<strong>value</strong>.  But I can't figure out how to do so.  </p>
  
  <p>Any help would be appreciated!</p>