Learn about a long-standing 'bug' in Django when looping through defaultdicts in templates and how to fix it.

2m read timeFrom dsdev.in
Post cover image
Table of contents
Permalink The "Bug"Permalink ExplanationPermalink Fix 1: Disabling the defaulting feature of defaultdictPermalink Fix 2: Re-cast it to a Dict

Sort: