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.
2 parents 690c1b4 + 481e869 commit 326e590Copy full SHA for 326e590
src/indicatorsets/views.py
@@ -1,3 +1,4 @@
1
+import sys
2
import base64
3
import json
4
import requests
@@ -222,7 +223,12 @@ def get_context_data(self, **kwargs):
222
223
default=Value(0),
224
output_field=IntegerField(),
225
),
- ).order_by("-is_ongoing", "-is_dua_required", "name")
226
+ beta_last=Case(
227
+ When(name__istartswith="beta", then=Value(sys.maxsize)),
228
+ default=Value(0),
229
+ output_field=IntegerField(),
230
+ ),
231
+ ).order_by("beta_last", "-is_ongoing", "-is_dua_required", "name")
232
context["related_indicators"] = json.dumps(
233
self.get_related_indicators(
234
filter.indicators_qs, filter.qs.values_list("id", flat=True)
0 commit comments