From b2da15d987e80990de946d9814fd64f7f5be8cac Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 9 Jan 2017 18:31:57 +0100 Subject: Treatment types: had a hierarchy --- archaeological_finds/models_treatments.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'archaeological_finds/models_treatments.py') 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, -- cgit v1.2.3