summaryrefslogtreecommitdiff
path: root/archaeological_finds/models_treatments.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-01-09 18:31:57 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-01-09 18:31:57 +0100
commitb2da15d987e80990de946d9814fd64f7f5be8cac (patch)
tree1df0039e833ec571124a645a2ec6121692c4f355 /archaeological_finds/models_treatments.py
parent0575bbf4fe3bef6fee38212193786863908ba599 (diff)
downloadIshtar-b2da15d987e80990de946d9814fd64f7f5be8cac.tar.bz2
Ishtar-b2da15d987e80990de946d9814fd64f7f5be8cac.zip
Treatment types: had a hierarchy
Diffstat (limited to 'archaeological_finds/models_treatments.py')
-rw-r--r--archaeological_finds/models_treatments.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/archaeological_finds/models_treatments.py b/archaeological_finds/models_treatments.py
index 8fcda37c0..7563c487f 100644
--- a/archaeological_finds/models_treatments.py
+++ b/archaeological_finds/models_treatments.py
@@ -37,6 +37,9 @@ from archaeological_operations.models import ClosedItem
class TreatmentType(GeneralType):
+ order = models.IntegerField(_(u"Order"), default=10)
+ parent = models.ForeignKey("TreatmentType", verbose_name=_(u"Parent type"),
+ blank=True, null=True)
virtual = models.BooleanField(_(u"Virtual"))
upstream_is_many = models.BooleanField(
_(u"Upstream is many"), default=False,