diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-11-09 19:29:55 +0100 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-11-09 19:29:55 +0100 | 
| commit | 859acb48a27d8c4a4e479f873ccb012cc77e4670 (patch) | |
| tree | 415090f25c0ad1666da6cd0f6209961e24462d0c /archaeological_operations/models.py | |
| parent | 2af9622802fe386f5780719db5d2c4cf956d8b20 (diff) | |
| download | Ishtar-859acb48a27d8c4a4e479f873ccb012cc77e4670.tar.bz2 Ishtar-859acb48a27d8c4a4e479f873ccb012cc77e4670.zip | |
Manage fix of associated items (after imports or database dump)
Diffstat (limited to 'archaeological_operations/models.py')
| -rw-r--r-- | archaeological_operations/models.py | 10 | 
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"), | 
