Fixes missing form data when rendering the add record template after an error.

This commit is contained in:
Daniel Roschka 2015-03-23 21:10:15 +01:00
parent 19f891c27a
commit 382cf4ae26
1 changed files with 3 additions and 0 deletions

View File

@ -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 })