Return a dict with the response from adding an RR recorc

This commit is contained in:
Jeffrey Forman 2011-10-13 08:38:40 -04:00
parent 987e1a4d35
commit 77da4b8f82
2 changed files with 2 additions and 2 deletions

View File

@ -43,4 +43,4 @@ def add_record(clean_data):
except dns.tsig.PeerBadKey: except dns.tsig.PeerBadKey:
return {'errors' : "There was a problem adding your record due to a TSIG key issue. Please resolve that first." } return {'errors' : "There was a problem adding your record due to a TSIG key issue. Please resolve that first." }
return response return {'response' : response }

View File

@ -82,7 +82,7 @@ def add_record_result(request):
context_instance=RequestContext(request)) context_instance=RequestContext(request))
else: else:
return render_to_response('bcommon/add_record_result.htm', return render_to_response('bcommon/add_record_result.htm',
{ 'response' : response }, { 'response' : response['response'] },
context_instance=RequestContext(request)) context_instance=RequestContext(request))
def view_delete_record(request): def view_delete_record(request):