From 25a0f476ef2248cde4e70ed0c199174e1398e2ba 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) --- archaeological_operations/models.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'archaeological_operations') diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 3924249c0..c805f9a3d 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -56,6 +56,7 @@ class RemainType(GeneralType): class Meta: verbose_name = _(u"Remain type") verbose_name_plural = _(u"Remain types") + ordering = ('label',) class Period(GeneralType) : order = models.IntegerField(_(u"Order")) @@ -317,6 +318,7 @@ class ActType(GeneralType): class Meta: verbose_name = _(u"Act type") verbose_name_plural = _(u"Act types") + ordering = ('label',) class AdministrativeAct(BaseHistorizedItem, OwnPerms): TABLE_COLS = ['act_type', 'associated_file', 'operation', -- cgit v1.2.3