TT#78800 panel: use human sorting for releases

Change-Id: I4837a66468e261fc8626229858b18aafe9fb50d8
pull/3/head
Victor Seva 5 years ago
parent 804f9c98ac
commit fb763c917d

@ -1,4 +1,4 @@
# Copyright (C) 2015 The Sipwise Team - http://sipwise.com
# Copyright (C) 2015-2020 The Sipwise Team - http://sipwise.com
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
@ -15,6 +15,7 @@
from django.http import HttpResponseNotFound
from django.shortcuts import get_object_or_404
from django.shortcuts import render
from natsort import humansorted
from .conf import settings
from build.models import BuildRelease
@ -22,7 +23,7 @@ from repoapi.models import JenkinsBuildInfo as jbi
def index(request):
context = {"releases": jbi.objects.releases()}
context = {"releases": humansorted(jbi.objects.releases())}
return render(request, "panel/index.html", context)

Loading…
Cancel
Save