My defaultdict(list) won't show up on template but does in my view [duplicate]
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Django template can’t loop defaultdict I am wondering why my defaultdict(list) will show when I test it in my views.py but when I go to show the data on my template, I get nothing, not even an error. Any suggestions? Here is my views.py - confirm_list is my defaultdict(list) def confirmations_report(request, *args, **kwargs): from investments.models import Investment, InvestmentManager from reports.forms import