From b9210264c863674f37f8538ade251b056859532e Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Mon, 2 Oct 2017 11:49:12 +0200 Subject: [PATCH] sort confirmations by teacher's email --- wtem/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wtem/models.py b/wtem/models.py index f745aeb..7c1f17a 100644 --- a/wtem/models.py +++ b/wtem/models.py @@ -196,7 +196,7 @@ class Confirmation(models.Model): confirmed = models.BooleanField(default=False) class Meta: - ordering = ['email'] + ordering = ['contact__contact'] @classmethod def create(cls, first_name, last_name, email, contact=None, key=None): -- 2.20.1