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_files/models.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'archaeological_files') diff --git a/archaeological_files/models.py b/archaeological_files/models.py index 49b9086d0..0095dd13b 100644 --- a/archaeological_files/models.py +++ b/archaeological_files/models.py @@ -35,6 +35,7 @@ class FileType(GeneralType): class Meta: verbose_name = _(u"Archaeological file type") verbose_name_plural = _(u"Archaeological file types") + ordering = ('label',) @classmethod def is_preventive(cls, file_type_id, key=''): @@ -49,6 +50,7 @@ class PermitType(GeneralType): class Meta: verbose_name = _(u"Permit type") verbose_name_plural = _(u"Permit types") + ordering = ('label',) if settings.COUNTRY == 'fr': class SaisineType(GeneralType): @@ -56,6 +58,7 @@ if settings.COUNTRY == 'fr': class Meta: verbose_name = u"Type Saisine" verbose_name_plural = u"Types Saisine" + ordering = ('label',) class File(BaseHistorizedItem, OwnPerms): TABLE_COLS = ['numeric_reference', 'year', 'internal_reference', -- cgit v1.2.3