Browse Source

Fixes #260: Corrected typo in get_queryset()

Jeremy Stretch 8 years ago
parent
commit
e92f60afda
1 changed files with 1 additions and 1 deletions
  1. 1 1
      netbox/dcim/admin.py

+ 1 - 1
netbox/dcim/admin.py

@@ -89,7 +89,7 @@ class DeviceTypeAdmin(admin.ModelAdmin):
             power_port_count=Count('power_port_templates', distinct=True),
             power_outlet_count=Count('power_outlet_templates', distinct=True),
             interface_count=Count('interface_templates', distinct=True),
-            devicebay_count=Count('devicebay_templates', distinct=True),
+            devicebay_count=Count('device_bay_templates', distinct=True),
         )
 
     def console_ports(self, instance):