Month now sorted by number, not by id

This commit is contained in:
2022-11-03 00:10:39 +03:00
parent 0f9b2cffda
commit 49194ab91b
+1 -1
View File
@@ -86,7 +86,7 @@ def year_page(request, year: int):
except YearData.DoesNotExist:
return HttpResponseNotFound('<h1>404 Not Found</h1>')
month_data = MonthData.objects.all()
month_data = MonthData.objects.all().order_by('number')
calendar_data = CalendarData.objects.first()
events = Event.objects.all()