From b15601b7232fa489fec58b555031b71d17f5ca79 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 4 Dec 2016 23:11:59 +0100 Subject: Adapt treatment cols --- archaeological_finds/models.py | 5 +++-- archaeological_finds/templates/ishtar/sheet_find.html | 8 ++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/archaeological_finds/models.py b/archaeological_finds/models.py index d142a22b3..aaa145c65 100644 --- a/archaeological_finds/models.py +++ b/archaeological_finds/models.py @@ -798,8 +798,9 @@ post_delete.connect(post_save_cache, sender=TreatmentType) class Treatment(BaseHistorizedItem, ImageModel, OwnPerms): SHOW_URL = 'show-treatment' - TABLE_COLS = ('treatment_types_lbl', 'person', 'start_date', - 'downstream_cached_label', 'upstream_cached_label') + TABLE_COLS = ('year', 'index', 'treatment_types_lbl', 'label', 'person', + 'start_date', 'downstream_cached_label', + 'upstream_cached_label') REVERSED_BOOL_FIELDS = ['image__isnull'] EXTRA_REQUEST_KEYS = { "label": 'label__icontains', diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html index 2efb9a69c..c5cfc39b5 100644 --- a/archaeological_finds/templates/ishtar/sheet_find.html +++ b/archaeological_finds/templates/ishtar/sheet_find.html @@ -86,6 +86,8 @@ + + @@ -101,6 +103,8 @@ + + @@ -122,6 +126,8 @@
 {% trans "Year - index" %}{% trans "Label" %} {% trans "Type" %} {% trans "Related finds" %} {% trans "Doer" %} {{ treatment.year }} - {{treatment.index}}{{ treatment.label }} {{ treatment.treatment_types_lbl }} {% for item in items %}{{item}} {{ item|link_to_window}}{% endfor %} {{ treatment.person|default_if_none:"-" }}
+ + @@ -137,6 +143,8 @@ + + -- cgit v1.2.3
 {% trans "Year - index" %}{% trans "Label" %} {% trans "Type" %} {% trans "Related finds" %} {% trans "Doer" %} {{ treatment.year }} - {{treatment.index}}{{ treatment.label }} {{ treatment.treatment_types_lbl }} {% for item in items %}{{item}} {{ item|link_to_window}}{% endfor %} {{ treatment.person|default_if_none:"" }}