summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-11-09 23:27:55 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-11-09 23:27:55 +0100
commit85538e0b60da8dcd282988e07234a9c0c4c22db8 (patch)
tree1747dde4703a0b8a63372a1c89631c989a980e2b /archaeological_operations/models.py
parent0caeba897e75ddaad6c551b9085087a8e1e72449 (diff)
parent6f32d8713096f85029c213954816ea50d06f9643 (diff)
downloadIshtar-85538e0b60da8dcd282988e07234a9c0c4c22db8.tar.bz2
Ishtar-85538e0b60da8dcd282988e07234a9c0c4c22db8.zip
Merge branch 'develop' into develop-bootstrap
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r--archaeological_operations/models.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py
index 70c1c02ba..cf648a43a 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
+ ImageModel, post_save_cache, PersonType
class RemainType(GeneralType):
@@ -252,6 +252,14 @@ class Operation(ClosedItem, BaseHistorizedItem, ImageModel, OwnPerms,
"common_name", "comment", "address", "old_code"]
INT_SEARCH_VECTORS = ["year"]
M2M_SEARCH_VECTORS = ["towns__name"]
+ ASSOCIATED = {
+ "scientist": {
+ ('person_types', PersonType): (
+ 'head_scientist',
+ 'sra_agent'
+ )
+ },
+ }
# fields definition
creation_date = models.DateField(_(u"Creation date"),