diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-10-01 16:34:52 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-10-01 16:34:52 +0200 |
commit | 778599f6ab4cca52601e934e811769ecc32e6868 (patch) | |
tree | 8f7d5164febe82a530700cc4c99c48a155a9bf0b /ishtar_common | |
parent | 87e688aa12067a9368617ea635189b45954ebee4 (diff) | |
download | Ishtar-778599f6ab4cca52601e934e811769ecc32e6868.tar.bz2 Ishtar-778599f6ab4cca52601e934e811769ecc32e6868.zip |
Sheet person: fix related tables
Diffstat (limited to 'ishtar_common')
-rw-r--r-- | ishtar_common/models.py | 1 | ||||
-rw-r--r-- | ishtar_common/templates/ishtar/sheet_person.html | 12 |
2 files changed, 7 insertions, 6 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 2f637cabe..8c150bf29 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -3405,6 +3405,7 @@ class Document(OwnPerms, ImageModel, FullSearch, Imported): "finds__base_finds__context_record__operation": "finds__base_finds__context_record__operation__pk", 'authors__cached_label': 'authors__cached_label', + 'authors__person__pk': 'authors__person__pk', } # alternative names of fields for searches diff --git a/ishtar_common/templates/ishtar/sheet_person.html b/ishtar_common/templates/ishtar/sheet_person.html index f84b80d83..ef8bb9064 100644 --- a/ishtar_common/templates/ishtar/sheet_person.html +++ b/ishtar_common/templates/ishtar/sheet_person.html @@ -81,31 +81,31 @@ {% trans "Associated operations as scientist" as ao %} {% if item.operation_scientist_responsability.count %} -{% dynamic_table_document ao 'operations' 'scientist' item.pk '' output %} +{% dynamic_table_document ao 'operations' 'scientist__pk' item.pk '' output %} {% endif %} {% trans "Associated operations as responsible" as ao %} {% if item.operation_responsability.count %} -{% dynamic_table_document ao 'operations' 'in_charge' item.pk '' output %} +{% dynamic_table_document ao 'operations' 'in_charge__pk' item.pk '' output %} {% endif %} {% trans "In charge of archaeological files" as af %} {% if item.file_responsability.count %} -{% dynamic_table_document af 'files' 'in_charge' item.pk '' output %} +{% dynamic_table_document af 'files' 'in_charge__pk' item.pk '' output %} {% endif %} {% trans "General contractor of archaeological files" as af %} {% if item.general_contractor_files.count %} -{% dynamic_table_document af 'files' 'general_contractor' item.pk '' output %} +{% dynamic_table_document af 'files' 'general_contractor__pk' item.pk '' output %} {% endif %} {% trans "Responsible for planning service of archaeological files" as af %} {% if item.responsible_town_planning_service_files.count %} -{% dynamic_table_document af 'files' 'responsible_town_planning_service' item.pk '' output %} +{% dynamic_table_document af 'files' 'responsible_town_planning_service__pk' item.pk '' output %} {% endif %} {% if item.docs_q.count %} {% trans "Documents" as docs %} -{% dynamic_table_document docs 'documents' 'authors__person' item.pk '' output %} +{% dynamic_table_document docs 'documents' 'authors__person__pk' item.pk '' output %} {% endif %} |