mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-18 08:17:28 +00:00
bug fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user