summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2024-07-23 09:39:21 +0200
committerPhilip Sargent <philip.sargent@gmail.com>2024-07-23 09:39:21 +0200
commitfeaf38aa39eb867b359fa5ceab6fe7d3886fc782 (patch)
tree6e8f83627453fd0571b0d3dc260930d9951f0693 /core
parentc01f0e1dff515ff40390e618d05c2712488b755a (diff)
downloadtroggle-feaf38aa39eb867b359fa5ceab6fe7d3886fc782.tar.gz
troggle-feaf38aa39eb867b359fa5ceab6fe7d3886fc782.tar.bz2
troggle-feaf38aa39eb867b359fa5ceab6fe7d3886fc782.zip
bug fix
Diffstat (limited to 'core')
-rw-r--r--core/views/logbooks.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/views/logbooks.py b/core/views/logbooks.py
index 2c15a1e..5d9dca2 100644
--- a/core/views/logbooks.py
+++ b/core/views/logbooks.py
@@ -223,9 +223,11 @@ def personexpedition(request, slug="", year=""):
def logentrydelete(request, year):
"""This only gets called by a POST from the logreport page
- The function in memory of James Waite who managed to make so many duplicate logbook entries
+ This function is dedicated to James Waite who managed to make so many duplicate logbook entries
that we needed a sopecial mechanism to delete them.
"""
+ for i in request.POST:
+ print(f" - '{i}' {request.POST[i]}")
eslug = request.POST["entry_slug"]
entry = LogbookEntry.objects.get(slug=eslug)
# OK we delete it formt he db and then re-save logbook.html file