I have a structure my_dict
like this:
defaultdict(<class 'list'>, {
<MyClass: myobject1>: [<ThingClass: mything1>, <ThingClass: mything2>, ...],
<MyClass: myobject2>: [<ThingClass: mything6>, <ThingClass: mything7>, ...],
<MyClass: myobject3>: [<ThingClass: mything45>, <ThingClass: mything46>, ...],
...
})
I want to loop through the objects something like this:
{% for object in my_dict %}
{{object.somefield}}
{% for thing in object %}
{{thing.somefield}}
{% endfor %}
{% endfor %}
How do I loop through the things in this nested loop? myobject1 is not iterable, so how do I get the iterable?