From 5ade60e0cfc63c33acdf8436e5650520acf59975 Mon Sep 17 00:00:00 2001 From: Martin Green Date: Sun, 1 May 2011 23:11:18 +0100 Subject: [PATCH] Fix --- core/views_logbooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/views_logbooks.py b/core/views_logbooks.py index cb7de3a..b1b0a5f 100644 --- a/core/views_logbooks.py +++ b/core/views_logbooks.py @@ -196,7 +196,7 @@ def newLogbookEntry(request, expeditionyear, pdate = None, pslug = None): print logbookparsers.parseAutoLogBookEntry(filename) return HttpResponseRedirect(reverse('expedition', args=[expedition.year])) # Redirect after POST else: - if slug and date: + if pslug and date: if lbe.cave: tripForm = TripForm(date = previousdate, title = previouslbe.title,