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:
commit
8679f1cc5f
|
@ -118,6 +118,9 @@ def view_add_record_result(request):
|
|||
return render(request, "bcommon/add_record_form.htm",
|
||||
{ "dns_server" : dns_server,
|
||||
"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_data" : request.POST })
|
||||
|
||||
|
|
Loading…
Reference in New Issue