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,