print error if encountered in deleting records form

This commit is contained in:
Jeffrey Forman 2012-12-16 11:21:44 -05:00
parent 26acc4f51c
commit b803923331
1 changed files with 3 additions and 2 deletions

View File

@ -173,8 +173,9 @@ def view_delete_result(request):
if form.is_valid(): if form.is_valid():
clean_form = form.cleaned_data clean_form = form.cleaned_data
else: else:
# TODO: Add unit test here. # TODO: What situations would cause this form
pass # not to validate?
print "in view_delete_result, form errors: %r" % form.errors
delete_result = helpers.delete_record(clean_form["dns_server"], delete_result = helpers.delete_record(clean_form["dns_server"],
clean_form["rr_list"], clean_form["rr_list"],