Commit bd221208 authored by Joost Rijneveld's avatar Joost Rijneveld
Browse files

Merge branch 'fix/328-documents-use-lectureyear' into 'master'

Fix showing general meetings in years > lecture year

Closes #328

See merge request !363
parents d4b3943b c3725c5a
......@@ -32,7 +32,10 @@ def index(request):
meeting_years = {x: [] for x in range(1990, lectureyear + 1)}
for obj in GeneralMeeting.objects.all():
meeting_years[datetime_to_lectureyear(obj.datetime)].append(obj)
meeting_year = datetime_to_lectureyear(obj.datetime)
if meeting_year not in meeting_years:
meeting_years[meeting_year] = []
meeting_years[meeting_year].append(obj)
context = {'miscellaneous_documents': MiscellaneousDocument.objects.all(),
'association_documents_years': sorted(years.items(),
......
Markdown is supported
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