Browse Source

Fixed dynamic selection of device type filter on devices list

Jeremy Stretch 8 years ago
parent
commit
ab30ba1e1b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      netbox/templates/dcim/device_list.html

+ 1 - 1
netbox/templates/dcim/device_list.html

@@ -41,7 +41,7 @@ $(document).ready(function() {
                 url: api_url,
                 dataType: 'json',
                 success: function (response, status) {
-                    $.each(response, function (index, device_type) {
+                    $.each(response["results"], function (index, device_type) {
                         var option = $("<option></option>").attr("value", device_type.id).text(device_type["model"] + " (" + device_type["instance_count"] + ")");
                         model_list.append(option);
                     });