diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-24 20:24:51 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-28 12:15:25 +0100 |
commit | 666170c6073266d3780bda82ab88493b64e025d4 (patch) | |
tree | c6ba9619841c2dfb9bfe49f51d5e25e0e1f2d9e2 | |
parent | 379457b88e55af51919d1485be644e12ab54aeaa (diff) | |
download | Ishtar-666170c6073266d3780bda82ab88493b64e025d4.tar.bz2 Ishtar-666170c6073266d3780bda82ab88493b64e025d4.zip |
Update value docs
-rw-r--r-- | archaeological_context_records/models.py | 2 | ||||
-rw-r--r-- | archaeological_finds/models_finds.py | 2 | ||||
-rw-r--r-- | archaeological_operations/models.py | 4 | ||||
-rw-r--r-- | archaeological_warehouse/models.py | 1 | ||||
-rw-r--r-- | docs/fr/source/annexe-tech-3-variables-gen.rst | 9 |
5 files changed, 10 insertions, 8 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index 6a3d2254b..2c43ad810 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -664,7 +664,7 @@ class ContextRecord(BulkUpdatedItem, DocumentItem, BaseHistorizedItem, return dct DOC_VALUES = [ - ("base_finds.", _("List of associated base finds")), + ("base_finds", _("List of associated base finds")), ] def get_values(self, prefix='', no_values=False, filtr=None, **kwargs): diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index 9d14cc2ba..c3faf93d0 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -1842,7 +1842,7 @@ class Find(BulkUpdatedItem, ValueGetter, DocumentItem, BaseHistorizedItem, return self.base_finds.order_by('-pk').all()[0] DOC_VALUES = [ - ("base_finds.", _("List of associated base finds")), + ("base_finds", _("List of associated base finds")), ("material_types_label", _("Material types string")), ("material_types_code", _("Material types code string")), ] diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 240283d1a..653c8d495 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -1236,8 +1236,8 @@ class Operation(ClosedItem, DocumentItem, BaseHistorizedItem, return self.cached_label or "" DOC_VALUES = [ - ("context_records.", _("List of associated context records")), - ("containers.", _("List of associated containers")), + ("context_records", _("List of associated context records")), + ("containers", _("List of associated containers")), ] def get_containers_values(self, filtr, exclude) -> list: # Container value diff --git a/archaeological_warehouse/models.py b/archaeological_warehouse/models.py index 7244d60ed..feea9183e 100644 --- a/archaeological_warehouse/models.py +++ b/archaeological_warehouse/models.py @@ -1432,6 +1432,7 @@ class Container(DocumentItem, Merge, LightHistorizedItem, _("Material types inside the container - string")), ("material_types_code", _("Material types code - string")), + ("finds", _("List of associated finds")), ] def get_material_types_code(self) -> str: diff --git a/docs/fr/source/annexe-tech-3-variables-gen.rst b/docs/fr/source/annexe-tech-3-variables-gen.rst index 6b58cf705..f211d1a8c 100644 --- a/docs/fr/source/annexe-tech-3-variables-gen.rst +++ b/docs/fr/source/annexe-tech-3-variables-gen.rst @@ -301,9 +301,9 @@ Chaque opération dispose des :ref:`champs géographiques <valeurs-champs-geo>`, - **comment** : *Texte* - Commentaire - **common_name** : *Texte* - Nom générique - **complete_identifier** : *Texte* - Complete identifier -- **containers.** : List of associated containers - **Field only available for template generation** +- **containers** : List of associated containers - **Field only available for template generation** - **context_record__** : *→ Unité d'Enregistrement (opération)* -- **context_records.** : List of associated context records - **Field only available for template generation** +- **context_records** : List of associated context records - **Field only available for template generation** - **cost** : *Entier* - Coût (euros) - **creation_date** : *Date* - Date de création - **custom_index** : *Entier* - Custom index @@ -460,7 +460,7 @@ Chaque unité d'enregistrement dispose des :ref:`champs géographiques <valeurs- - **activity__** : *→ Type d'activité* (**label** Dénomination, **txt_idx** Identifiant textuel) - Activité - **archaeological_site__** : *→ Entité archéologique* - Entité archéologique -- **base_finds.** : List of associated base finds - **Field only available for template generation** +- **base_finds** : List of associated base finds - **Field only available for template generation** - **base_finds__** : *→ Mobilier d'origine (unité d'enregistrement)* - **cached_label** : *Texte* - Nom en cache - **cached_periods** : *Texte* - Nom en cache des périodes - Généré automatiquement - ne pas éditer @@ -545,7 +545,7 @@ Chaque élément mobilier dispose du champ `data__` ainsi que des champs suivant - **alteration_causes__** : *→ Type de cause d'altération* (**label** Dénomination, **txt_idx** Identifiant textuel) - Cause d'altération - **alterations__** : *→ Type d'altération* (**label** Dénomination, **txt_idx** Identifiant textuel) - Altération - **appraisal_date** : *Date* - Date d'évaluation -- **base_finds.** : List of associated base finds - **Field only available for template generation** +- **base_finds** : List of associated base finds - **Field only available for template generation** - **base_finds__** : *→ Mobilier d'origine* - Mobilier d'origine - **basket__** : *→ Paniers (items)* - **cached_label** : *Texte* - Nom en cache - Généré automatiquement - ne pas éditer @@ -745,6 +745,7 @@ Chaque contenant dispose des :ref:`champs géographiques <valeurs-champs-geo>`, - **division__** : *→ Localisations de contenant (contenant)* - **documents__** : *→ Document* - Documents - **external_id** : *Texte* - Identifiant +- **finds** : List of associated finds - **Field only available for template generation** - **finds__** : *→ Mobilier (contenant)* - **finds_ref__** : *→ Mobilier (contenant de référence)* - **index** : *Entier* - Container ID |