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)