sort confirmations by teacher's email
authorJan Szejko <janek37@gmail.com>
Mon, 2 Oct 2017 09:49:12 +0000 (11:49 +0200)
committerJan Szejko <janek37@gmail.com>
Mon, 2 Oct 2017 09:49:12 +0000 (11:49 +0200)
wtem/models.py

index f745aeb..7c1f17a 100644 (file)
@@ -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):