From b803923331fac5d40096fbba593b1cba9b7e4a47 Mon Sep 17 00:00:00 2001 From: Jeffrey Forman Date: Sun, 16 Dec 2012 11:21:44 -0500 Subject: [PATCH] print error if encountered in deleting records form --- binder/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/binder/views.py b/binder/views.py index ada4fa7..cb82348 100644 --- a/binder/views.py +++ b/binder/views.py @@ -173,8 +173,9 @@ def view_delete_result(request): if form.is_valid(): clean_form = form.cleaned_data else: - # TODO: Add unit test here. - pass + # TODO: What situations would cause this form + # not to validate? + print "in view_delete_result, form errors: %r" % form.errors delete_result = helpers.delete_record(clean_form["dns_server"], clean_form["rr_list"],