Commit 9e55627f authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Merge branch 'cherry-pick-fa4f54d3' into 'release/1.14'

Merge branch 'fix/documents-keyerror' into 'master'

See merge request !775
parents e9da7e46 f42a0d7f
......@@ -19,8 +19,12 @@ def index(request):
for policy in AnnualDocument.objects.filter(subcategory='policy'):
years[policy.year]['policy'] = policy
for report in AnnualDocument.objects.filter(subcategory='report'):
if 'report' not in years[report.year]:
years[report.year]['report'] = {}
years[report.year]['report']['annual'] = report
for financial in AnnualDocument.objects.filter(subcategory='financial'):
if 'report' not in years[financial.year]:
years[financial.year]['report'] = {}
years[financial.year]['report']['financial'] = financial
meeting_years = {x: [] for x in range(1990, lectureyear + 1)}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment