From a1facf04262cb38fcb08444e85a832e014cd7c85 Mon Sep 17 00:00:00 2001 From: Zergling_man Date: Sun, 12 Dec 2021 21:53:10 +1100 Subject: [PATCH] Right, I can into of importing --- main/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/views.py b/main/views.py index 7cc70a3..5468bf0 100644 --- a/main/views.py +++ b/main/views.py @@ -65,7 +65,7 @@ def lii(obj): @rerender def contact(): head="Certain people keep asking me about the best ways to contact me. So here they are, in rough order of most to least preferred. More to come as I remember them/feel like it
" - contacts=sorted(models.Contact.objects.all(),key=lambda x:(x.group,x.priority)) + contacts=sorted(Contact.objects.all(),key=lambda x:(x.group,x.priority)) out={} for n in contacts: if n.group in out: out[n.group].append(n)