summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES.md9
-rw-r--r--archaeological_finds/templates/ishtar/sheet_find.html10
-rw-r--r--ishtar_common/version.py4
-rw-r--r--ishtar_common/views_item.py2
4 files changed, 22 insertions, 3 deletions
diff --git a/CHANGES.md b/CHANGES.md
index 61c29da6d..36add5f32 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -1,6 +1,15 @@
Ishtar changelog
================
+v3.1.11 - 2021-04-19
+--------------------
+
+### Features ###
+- sheet find: add container index
+
+### Bug fixes ###
+- CSV export: deduplicate multi-values
+
v3.1.10 - 2021-04-12
--------------------
diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html
index 44a463fe9..57bcc9aef 100644
--- a/archaeological_finds/templates/ishtar/sheet_find.html
+++ b/archaeological_finds/templates/ishtar/sheet_find.html
@@ -308,6 +308,16 @@
</nav>
</dd>
</dl>
+ {% if item.container.index %}
+ <div class='row'>
+ <dl class="col-12 flex-wrap">
+ <dt>{% trans "Index" %}</dt>
+ <dd>
+ {{ item.container.location }} - {{ item.container.index }}
+ </dd>
+ </dl>
+ </div>
+ {% endif %}
{% endif %}
</div>
{% endif %}
diff --git a/ishtar_common/version.py b/ishtar_common/version.py
index 120c379b3..4e8e1c5e8 100644
--- a/ishtar_common/version.py
+++ b/ishtar_common/version.py
@@ -1,5 +1,5 @@
-# 3.1.10
-VERSION = (3, 1, 10)
+# 3.1.11
+VERSION = (3, 1, 11)
def get_version():
diff --git a/ishtar_common/views_item.py b/ishtar_common/views_item.py
index 3787e7d19..daa6ece00 100644
--- a/ishtar_common/views_item.py
+++ b/ishtar_common/views_item.py
@@ -1408,7 +1408,7 @@ def _get_data_from_query_old(
"{}{}{}".format(vals[idx], " - ", _format_val(v))
)
my_vals = new_vals[:]
- data.append(" & ".join(my_vals) or "")
+ data.append(" & ".join(set(my_vals)) or "")
if has_lock:
data.append(item.locked)
data.append(item.lock_user_id)