summaryrefslogtreecommitdiff
path: root/archaeological_finds/models_treatments.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-11-14 17:13:56 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-11-14 17:13:56 +0100
commitca55bc46fa05ec4e1bfc8c5450389e83b95ec313 (patch)
tree5c8f1e3f5664f8501d4fe0177187c67375aff3f1 /archaeological_finds/models_treatments.py
parentea1ad872dec9d6beeafe6ccd4264132f5865079e (diff)
parent2e4847a414f44600dc25fd1152c1bcff173f76de (diff)
downloadIshtar-ca55bc46fa05ec4e1bfc8c5450389e83b95ec313.tar.bz2
Ishtar-ca55bc46fa05ec4e1bfc8c5450389e83b95ec313.zip
Merge branch 'develop' into develop-bootstrap
Diffstat (limited to 'archaeological_finds/models_treatments.py')
-rw-r--r--archaeological_finds/models_treatments.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/archaeological_finds/models_treatments.py b/archaeological_finds/models_treatments.py
index 03eeed452..6c173959a 100644
--- a/archaeological_finds/models_treatments.py
+++ b/archaeological_finds/models_treatments.py
@@ -30,7 +30,7 @@ from django.utils.translation import ugettext_lazy as _, ugettext
from ishtar_common.utils import cached_label_changed, get_current_year
from ishtar_common.models import GeneralType, ImageModel, BaseHistorizedItem, \
OwnPerms, HistoricalRecords, Person, Organization, Source, \
- ValueGetter, post_save_cache, ShortMenuItem, DashboardFormItem
+ ValueGetter, post_save_cache, ShortMenuItem, DashboardFormItem, IshtarImage
from archaeological_warehouse.models import Warehouse, Container
from archaeological_finds.models_finds import Find, FindBasket, TreatmentType
from archaeological_operations.models import ClosedItem, Operation
@@ -115,6 +115,8 @@ class Treatment(DashboardFormItem, ValueGetter, BaseHistorizedItem,
blank=True, null=True)
target_is_basket = models.BooleanField(_(u"Target a basket"),
default=False)
+ images = models.ManyToManyField(IshtarImage, verbose_name=_(u"Images"),
+ blank=True)
cached_label = models.TextField(_(u"Cached name"), null=True, blank=True,
db_index=True)
history = HistoricalRecords()