diff options
-rw-r--r-- | views.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -17,7 +17,6 @@ import datetime from django.db import connection from django.db.models import Count, Max -from django.db.models.expressions import RawSQL from django.db.models.functions import ExtractWeek, ExtractYear, Length from django.http import Http404 from django.shortcuts import get_object_or_404, render @@ -31,6 +30,7 @@ import edt 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") |