From 5bc2c132fa9baafe2edd92a7dfb7c1388cbf408f Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Mon, 20 Jul 2020 23:47:52 +0100 Subject: [PATCH] fix makes prospecting_guide work --- core/views_caves.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/views_caves.py b/core/views_caves.py index 96efe9e..a0796f3 100644 --- a/core/views_caves.py +++ b/core/views_caves.py @@ -337,7 +337,7 @@ def prospecting(request): for key, name in areanames: a = Area.objects.get(short_name = key) caves = list(a.cave_set.all()) - caves.sort(caveCmp) + caves.sort(key=caveKey) areas.append((name, a, caves)) return render(request, 'prospecting.html', {"areas": areas})