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: