Learn about a long-standing 'bug' in Django when looping through defaultdicts in templates and how to fix it.
Table of contents
Permalink The "Bug"Permalink ExplanationPermalink Fix 1: Disabling the defaulting feature of defaultdictPermalink Fix 2: Re-cast it to a DictSort: