Fixes missing form data when rendering the add record template after an error.
This commit is contained in:
parent
19f891c27a
commit
382cf4ae26
|
@ -107,6 +107,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" : request.POST["dns_server"],
|
{ "dns_server" : request.POST["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 })
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue