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
commit1a39ea814072d06e821c695063e2b95db206b460 (patch)
tree1747dde4703a0b8a63372a1c89631c989a980e2b /archaeological_operations/models.py
parentd89dd18aa21a3054ed789d55201d68bf77b527a0 (diff)
parent097c8162391f62489d94ffc92b6c81549d0b547c (diff)
downloadIshtar-1a39ea814072d06e821c695063e2b95db206b460.tar.bz2
Ishtar-1a39ea814072d06e821c695063e2b95db206b460.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"),