From 8dedb50e62a909b9270da73e426b92df86c5f27c Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 20 Apr 2015 11:39:20 +0200 Subject: Sort document template by type and name (refs #2431) --- ishtar_common/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index a11eed783..46aafe2ad 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -841,7 +841,7 @@ class DocumentTemplate(models.Model): class Meta: verbose_name = _(u"Document template") verbose_name_plural = _(u"Document templates") - ordering = ['associated_object_name'] + ordering = ['associated_object_name', 'name'] def __unicode__(self): return self.name -- cgit v1.2.3