summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2013-09-12 00:14:06 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2013-09-12 00:14:06 +0200
commit25a0f476ef2248cde4e70ed0c199174e1398e2ba (patch)
tree184812c6c12ee116ba3876d0aeeee3fdf1fe9016 /ishtar_common/models.py
parent560fd5ea7616c7062ea94bde43dfad1d16310584 (diff)
downloadIshtar-25a0f476ef2248cde4e70ed0c199174e1398e2ba.tar.bz2
Ishtar-25a0f476ef2248cde4e70ed0c199174e1398e2ba.zip
Manage missing order for some GeneralTypes (refs #612)
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 6eca7ddd7..456368d6e 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -619,6 +619,7 @@ class OrganizationType(GeneralType):
class Meta:
verbose_name = _(u"Organization type")
verbose_name_plural = _(u"Organization types")
+ ordering = ('label',)
class Organization(Address, OwnPerms):
name = models.CharField(_(u"Name"), max_length=100)
@@ -644,6 +645,7 @@ class PersonType(GeneralType):
class Meta:
verbose_name = _(u"Person type")
verbose_name_plural = _(u"Person types")
+ ordering = ('label',)
class Person(Address, OwnPerms) :
TYPE = (('Mr', _(u'Mr')),