summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-04-20 11:39:20 +0200
committerÉtienne Loks <etienne.loks@proxience.com>2015-04-20 11:39:20 +0200
commit8dedb50e62a909b9270da73e426b92df86c5f27c (patch)
treeb665e612df86e2a75df24d0b543a62d5f54b5c8f /ishtar_common/models.py
parent821c5ab6c865b245ffd0f3f9add4c6b95657841b (diff)
downloadIshtar-8dedb50e62a909b9270da73e426b92df86c5f27c.tar.bz2
Ishtar-8dedb50e62a909b9270da73e426b92df86c5f27c.zip
Sort document template by type and name (refs #2431)
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py2
1 files changed, 1 insertions, 1 deletions
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