From 5b6714f7e9776b815c05a40fa16abc4ed2223b30 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 16 Apr 2013 18:10:46 +0200 Subject: Ordering operation types --- archaeological_operations/models.py | 1 + 1 file changed, 1 insertion(+) (limited to 'archaeological_operations/models.py') diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 02ec1a912..d7dc18b3c 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -38,6 +38,7 @@ class OperationType(GeneralType): class Meta: verbose_name = _(u"Operation type") verbose_name_plural = _(u"Operation types") + ordering = ['label'] @classmethod def is_preventive(cls, ope_type_id, key=''): -- cgit v1.2.3