aboutsummaryrefslogtreecommitdiff
path: root/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'views.py')
-rw-r--r--views.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/views.py b/views.py
index bdbbdc2..de510a3 100644
--- a/views.py
+++ b/views.py
@@ -34,6 +34,7 @@ if connection.vendor == "postgresql":
from django.contrib.postgres.aggregates import ArrayAgg
from django.db.models.expressions import RawSQL
+
def index(request):
years = Year.objects.order_by("name")
return render(request, "index.html", {"elements": years})