From: Jan Szejko Date: Mon, 2 Oct 2017 09:49:12 +0000 (+0200) Subject: sort confirmations by teacher's email X-Git-Url: https://git.mdrn.pl/edumed.git/commitdiff_plain/b9210264c863674f37f8538ade251b056859532e sort confirmations by teacher's email --- 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):