diff options
Diffstat (limited to 'archaeological_files/models.py')
-rw-r--r-- | archaeological_files/models.py | 3 |
1 files changed, 3 insertions, 0 deletions
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', |