From 7623943f3eb4f851503282c85fc65a3e7ba80fbc Mon Sep 17 00:00:00 2001 From: Martin Green Date: Sun, 1 May 2011 23:11:18 +0100 Subject: Fix --- core/views_logbooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/views_logbooks.py') 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, -- cgit v1.2.3