From 2ed07147023e7a0a7b30c143261d244de3b84f77 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 12 Sep 2013 00:14:06 +0200 Subject: Manage missing order for some GeneralTypes (refs #612) --- ishtar_common/models.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ishtar_common/models.py') 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')), -- cgit v1.2.3