Merge pull request #16 from Dunedan/fix-form-data

Fixes missing form data when rendering the add record template after an error.
This commit is contained in:
Jeffrey Forman 2015-03-25 21:24:58 -04:00
commit 8679f1cc5f
1 changed files with 3 additions and 0 deletions

View File

@ -118,6 +118,9 @@ def view_add_record_result(request):
return render(request, "bcommon/add_record_form.htm", return render(request, "bcommon/add_record_form.htm",
{ "dns_server" : dns_server, { "dns_server" : dns_server,
"zone_name" : request.POST["zone_name"], "zone_name" : request.POST["zone_name"],
"tsig_keys" : models.Key.objects.all(),
"ttl_choices" : local_settings.TTL_CHOICES,
"record_type_choices" : local_settings.RECORD_TYPE_CHOICES,
"form_errors" : form.errors, "form_errors" : form.errors,
"form_data" : request.POST }) "form_data" : request.POST })