From 382cf4ae2689e703ee46e80f84531724db4071d8 Mon Sep 17 00:00:00 2001 From: Daniel Roschka Date: Mon, 23 Mar 2015 21:10:15 +0100 Subject: [PATCH] Fixes missing form data when rendering the add record template after an error. --- binder/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/binder/views.py b/binder/views.py index d6b9ed2..7dcb291 100644 --- a/binder/views.py +++ b/binder/views.py @@ -107,6 +107,9 @@ def view_add_record_result(request): return render(request, "bcommon/add_record_form.htm", { "dns_server" : request.POST["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 })