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) --- archaeological_finds/models.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'archaeological_finds') diff --git a/archaeological_finds/models.py b/archaeological_finds/models.py index 84a041a41..c832fdf70 100644 --- a/archaeological_finds/models.py +++ b/archaeological_finds/models.py @@ -40,6 +40,7 @@ class MaterialType(GeneralType): class Meta: verbose_name = _(u"Material type") verbose_name_plural = _(u"Material types") + ordering = ('label',) class BaseFind(BaseHistorizedItem, OwnPerms): label = models.CharField(_(u"ID"), max_length=60) @@ -293,6 +294,7 @@ class TreatmentType(GeneralType): class Meta: verbose_name = _(u"Treatment type") verbose_name_plural = _(u"Treatment types") + ordering = ('label',) class Treatment(BaseHistorizedItem, OwnPerms): container = models.ForeignKey(Container, verbose_name=_(u"Container"), -- cgit v1.2.3