From 7c66399c8fc384e0aa0c48d989b732322f5ddb53 Mon Sep 17 00:00:00 2001 From: Martin Bley Date: Wed, 24 Feb 2016 14:37:07 +0100 Subject: [PATCH] Some blank lines --- tipp/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tipp/views.py b/tipp/views.py index 8455a19..4c1abac 100644 --- a/tipp/views.py +++ b/tipp/views.py @@ -105,8 +105,6 @@ def profile(request, pk): for item in request.POST: debug.append(str(item) + " -> " + str(request.POST[item])) - - # Invalid form or forms - mistakes or something else? # Print problems to the terminal. # They'll also be shown to the user. @@ -114,6 +112,7 @@ def profile(request, pk): print user_form.errors, profile_form.errors return redirect( '/accounts/profile/' + str(user.id) ) + # Not a HTTP POST, so we render our form using two ModelForm instances. # These forms will be blank, ready for user input. else: