We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e55b234 commit a803489Copy full SHA for a803489
wagtail_ab_testing/views.py
@@ -4,7 +4,7 @@
4
5
from django import forms
6
from django.core.exceptions import PermissionDenied
7
-from django.db.models import Sum, Q, OrderBy, F
+from django.db.models import Sum, Q, F
8
from django.core.serializers.json import DjangoJSONEncoder
9
from django.shortcuts import get_object_or_404, redirect, render
10
from django.template.loader import render_to_string
@@ -446,4 +446,4 @@ class AbTestingReportView(ReportView):
446
filterset_class = AbTestingReportFilterSet
447
448
def get_queryset(self):
449
- return AbTest.objects.all().order_by(OrderBy(F('first_started_at'), descending=True, nulls_first=True))
+ return AbTest.objects.all().order_by(F('first_started_at').desc(nulls_first=True))
0 commit comments