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 diff --git a/templates/logreport.html b/templates/logreport.html index ed18da2..bdb0eca 100644 --- a/templates/logreport.html +++ b/templates/logreport.html @@ -21,7 +21,6 @@

(Hover mouse over the date to see the slug for the entry.) {% if logged_in %}Logged in as expoadmin{% endif %} - @@ -33,7 +32,7 @@ {% if logged_in %} -{% csrf_token %} +{% csrf_token %} {% endif %}
DateLogged trips and diary entriesCaveText..WordsAuthorWho else
{{date.grouper|date:"D d M Y"}} - {{entry.title|truncatechars:30|safe|striptags}}  + {{entry.title|truncatechars:25|safe|striptags}}  {% if entry.cave %} @@ -60,10 +59,11 @@
{{entry.slug}} +