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
commit2ed07147023e7a0a7b30c143261d244de3b84f77 (patch)
tree184812c6c12ee116ba3876d0aeeee3fdf1fe9016 /archaeological_operations/models.py
parenta405af29281255f4318f48d4c2adc766615c2f14 (diff)
downloadIshtar-2ed07147023e7a0a7b30c143261d244de3b84f77.tar.bz2
Ishtar-2ed07147023e7a0a7b30c143261d244de3b84f77.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',