I'm trying to convert the following queryset into a dictionary that I can then parse via a html template.
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
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.
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].rank and team[a].season[2018].type[reg].scope[l5].value. But I can't figure out how to do so.
Any help would be appreciated!