diff options
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"), | 
