]> git.parisson.com Git - teleforma.git/commitdiff
fix order
authoryomguy <yomguy@parisson.com>
Tue, 10 Jul 2012 14:13:43 +0000 (16:13 +0200)
committeryomguy <yomguy@parisson.com>
Tue, 10 Jul 2012 14:13:43 +0000 (16:13 +0200)
teleforma/templatetags/teleforma_tags.py

index 2737a9d16d82569ff7da53e966a5d990e1d86c4f..953eabe89d1f2a874283e48d0d584cc7bbb4b768 100644 (file)
@@ -142,7 +142,7 @@ def from_doc_type(docs, type):
 
 @register.assignment_tag
 def get_all_professors():
-    return Professor.objects.all().order_by('user')
+    return Professor.objects.all().order_by('user__first_name')
 
 @register.assignment_tag
 def get_all_admins():