From c05a8c1acd021a5b99830080d55465d685878923 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 21 Nov 2018 12:25:35 +0100 Subject: Fix imports logic --- archaeological_finds/models_finds.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'archaeological_finds/models_finds.py') diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index c7bd3f64e..a3aaae50d 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -1097,6 +1097,10 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, OwnPerms, documents = models.ManyToManyField( Document, related_name='finds', verbose_name=_(u"Documents"), blank=True) + treatments = models.ManyToManyField( + "Treatment", verbose_name=_(u"Treatments"), + related_name='finds', blank=True, + help_text=_(u"Related treatments when no new find is created")) cached_label = models.TextField(_(u"Cached name"), null=True, blank=True, db_index=True) history = HistoricalRecords() -- cgit v1.2.3