summaryrefslogtreecommitdiff
path: root/archaeological_warehouse
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_warehouse')
-rw-r--r--archaeological_warehouse/models.py2
-rw-r--r--archaeological_warehouse/templates/ishtar/sheet_warehouse.html10
2 files changed, 10 insertions, 2 deletions
diff --git a/archaeological_warehouse/models.py b/archaeological_warehouse/models.py
index 15d51aca1..8bd6d2944 100644
--- a/archaeological_warehouse/models.py
+++ b/archaeological_warehouse/models.py
@@ -150,6 +150,8 @@ class Warehouse(Address, DashboardFormItem, OwnPerms):
)
res = []
old_ref = None
+ if not q.count():
+ return [current_path]
for ref in q.values('reference').order_by('reference').all():
if ref['reference'] == old_ref:
continue
diff --git a/archaeological_warehouse/templates/ishtar/sheet_warehouse.html b/archaeological_warehouse/templates/ishtar/sheet_warehouse.html
index 1b16819b6..61553b839 100644
--- a/archaeological_warehouse/templates/ishtar/sheet_warehouse.html
+++ b/archaeological_warehouse/templates/ishtar/sheet_warehouse.html
@@ -64,7 +64,10 @@
{% for items in item.number_of_finds_by_place %}
<table class='table table-striped'>
{% for item in items %}
- <tr><th>{{item.0}}</th><td>{{item.1}}</td></tr>
+ <tr>
+ <th>{{item.0}}</th>
+ <td class="text-right">{{item.1}}</td>
+ </tr>
{% endfor %}
</table>
{% endfor %}
@@ -81,7 +84,10 @@
{% for items in item.number_of_containers_by_place %}
<table class='table table-striped'>
{% for item in items %}
- <tr><th>{{item.0}}</th><td>{{item.1}}</td></tr>
+ <tr>
+ <th>{{item.0}}</th>
+ <td class="text-right">{{item.1}}</td>
+ </tr>
{% endfor %}
</table>
{% endfor %}