diff --git a/core/views/scans.py b/core/views/scans.py index 8ecec0a..e3279f3 100644 --- a/core/views/scans.py +++ b/core/views/scans.py @@ -80,5 +80,5 @@ def cavewallets(request, cave_id): print(f'cavewallets {cave_id=} {cave=}') - manywallets = Wallet.objects.filter(survexblock__survexfile__cave=cave) - return render(request, 'cavewallets.html', { 'manywallets':manywallets, 'settings': settings }) + manywallets = set(Wallet.objects.filter(survexblock__survexfile__cave=cave)) + return render(request, 'cavewallets.html', { 'manywallets':manywallets, 'settings': settings, 'cave': cave}) diff --git a/templates/cavewallets.html b/templates/cavewallets.html index 670ce51..cc5e1f1 100644 --- a/templates/cavewallets.html +++ b/templates/cavewallets.html @@ -1,16 +1,15 @@ {% extends "base.html" %} -{% block title %}All Survey scans folders (wallets){% endblock %} +{% block title %}One Cave Survey scans folders (wallets){% endblock %} {% block content %} -

Survey scans folders (wallets) for a specific cave

+

Survey scans folders (wallets) for {{cave}}

Each wallet contains the scanned original in-cave survey notes and sketches of plans and elevations. It also contains scans of centre-line survex output on which hand-drawn passage sections are drawn. These hand-drawn passages will eventually be traced to produce Tunnel or Therion drawings and eventually the final complete cave survey. - {% for scanswallet in manywallets %}
Scans folderFilesSurvex blocksCave