summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2013-09-12 00:14:06 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2013-09-12 00:14:06 +0200
commit25a0f476ef2248cde4e70ed0c199174e1398e2ba (patch)
tree184812c6c12ee116ba3876d0aeeee3fdf1fe9016 /archaeological_operations/models.py
parent560fd5ea7616c7062ea94bde43dfad1d16310584 (diff)
downloadIshtar-25a0f476ef2248cde4e70ed0c199174e1398e2ba.tar.bz2
Ishtar-25a0f476ef2248cde4e70ed0c199174e1398e2ba.zip
Manage missing order for some GeneralTypes (refs #612)
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r--archaeological_operations/models.py2
1 files changed, 2 insertions, 0 deletions
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',