diff --git a/binder/bcommon/helpers.py b/binder/bcommon/helpers.py index e764cb6..d325dba 100644 --- a/binder/bcommon/helpers.py +++ b/binder/bcommon/helpers.py @@ -43,4 +43,4 @@ def add_record(clean_data): except dns.tsig.PeerBadKey: return {'errors' : "There was a problem adding your record due to a TSIG key issue. Please resolve that first." } - return response + return {'response' : response } diff --git a/binder/bcommon/views.py b/binder/bcommon/views.py index 75361f7..84a1d25 100644 --- a/binder/bcommon/views.py +++ b/binder/bcommon/views.py @@ -82,7 +82,7 @@ def add_record_result(request): context_instance=RequestContext(request)) else: return render_to_response('bcommon/add_record_result.htm', - { 'response' : response }, + { 'response' : response['response'] }, context_instance=RequestContext(request)) def view_delete_record(request):