Remove debug stuff

This commit is contained in:
Rodolphe Breard 2018-06-11 16:21:08 +02:00
parent 1b7152930d
commit a13bba420f

View file

@ -46,14 +46,9 @@ def switch_entry(request, pk):
def search_view(request): def search_view(request):
print('Debug: 1')
if request.method == 'POST': if request.method == 'POST':
print('Debug: 2')
form = SearchForm(request.POST) form = SearchForm(request.POST)
print('Debug: form is_valid: %s' % form.is_valid())
print('Debug: form: %s' % form)
if form.is_valid(): if form.is_valid():
print('Debug: 3')
date = form.cleaned_data['date'] date = form.cleaned_data['date']
return redirect(reverse('log_day', kwargs={ return redirect(reverse('log_day', kwargs={
'source': form.cleaned_data['source'], 'source': form.cleaned_data['source'],