Commits

George Notaras  committed 4051953

Fixed bug with form processing.

  • Participants
  • Parent commits 183a766

Comments (0)

Files changed (1)

File src/powerdns_manager/views.py

         return HttpResponseRedirect(reverse('admin:powerdns_manager_domain_changelist'))
     
     else:
-        info_dict = {
-            'form': ZoneTypeSelectionForm(),
-            'id_list': id_list,
-        }
-        return render_to_response(
-            'powerdns_manager/zone/set_type.html', info_dict, context_instance=RequestContext(request))
+        form = ZoneTypeSelectionForm()
+        
+    info_dict = {
+        'form': form,
+        'id_list': id_list,
+    }
+    return render_to_response(
+        'powerdns_manager/zone/set_type.html', info_dict, context_instance=RequestContext(request))
 
 
 
             return HttpResponseRedirect(reverse('admin:powerdns_manager_domain_changelist'))
         
     else:
-        info_dict = {
-            'form': TtlSelectionForm(),
-            'id_list': id_list,
-        }
-        return render_to_response(
-            'powerdns_manager/zone/set_ttl.html', info_dict, context_instance=RequestContext(request))
+        form = TtlSelectionForm()
+        
+    info_dict = {
+        'form': form,
+        'id_list': id_list,
+    }
+    return render_to_response(
+        'powerdns_manager/zone/set_ttl.html', info_dict, context_instance=RequestContext(request))
 
 
 
     else:
         form = ClonedZoneDomainForm()
     
-        info_dict = {
-            'form': form,
-            'zone_id': zone_id,
-        }
-        return render_to_response(
-            'powerdns_manager/zone/clone.html', info_dict, context_instance=RequestContext(request))
+    info_dict = {
+        'form': form,
+        'zone_id': zone_id,
+    }
+    return render_to_response(
+        'powerdns_manager/zone/clone.html', info_dict, context_instance=RequestContext(request))
     
     
 
     else:
         form = ZoneTransferForm()
         
-        info_dict = {
-            'form': form,
-            'id_list': id_list,
-        }
-        return render_to_response(
-            'powerdns_manager/zone/transfer.html', info_dict, context_instance=RequestContext(request))
+    info_dict = {
+        'form': form,
+        'id_list': id_list,
+    }
+    return render_to_response(
+        'powerdns_manager/zone/transfer.html', info_dict, context_instance=RequestContext(request))