summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-11-10 17:20:01 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-11-10 17:20:01 +0100
commit2e4847a414f44600dc25fd1152c1bcff173f76de (patch)
tree5af06729ecc00c740f127d5fd57d1c383efb4e90 /archaeological_operations/models.py
parent6f32d8713096f85029c213954816ea50d06f9643 (diff)
downloadIshtar-2e4847a414f44600dc25fd1152c1bcff173f76de.tar.bz2
Ishtar-2e4847a414f44600dc25fd1152c1bcff173f76de.zip
Models: generic images with m2m relations with main items
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r--archaeological_operations/models.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py
index cf648a43a..2f1ea3ea3 100644
--- a/archaeological_operations/models.py
+++ b/archaeological_operations/models.py
@@ -38,7 +38,7 @@ from ishtar_common.models import GeneralType, BaseHistorizedItem, \
SourceType, Person, Organization, Town, Dashboard, IshtarUser, ValueGetter,\
DocumentTemplate, ShortMenuItem, DashboardFormItem, GeneralRelationType,\
GeneralRecordRelations, post_delete_record_relation, OperationType, \
- ImageModel, post_save_cache, PersonType
+ ImageModel, post_save_cache, PersonType, IshtarImage
class RemainType(GeneralType):
@@ -352,6 +352,8 @@ class Operation(ClosedItem, BaseHistorizedItem, ImageModel, OwnPerms,
comment = models.TextField(_(u"General comment"), null=True, blank=True)
scientific_documentation_comment = models.TextField(
_(u"Comment about scientific documentation"), null=True, blank=True)
+ images = models.ManyToManyField(IshtarImage, verbose_name=_(u"Images"),
+ blank=True)
cached_label = models.CharField(_(u"Cached name"), max_length=500,
null=True, blank=True, db_index=True)
archaeological_sites = models.ManyToManyField(