Browse Source

Fixed RackGroup count

Jeremy Stretch 9 years ago
parent
commit
57f6d45ee7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      netbox/dcim/forms.py

+ 1 - 1
netbox/dcim/forms.py

@@ -77,7 +77,7 @@ class RackGroupBulkDeleteForm(ConfirmationForm):
 
 
 def rackgroup_site_choices():
-    site_choices = Site.objects.annotate(rack_count=Count('racks'))
+    site_choices = Site.objects.annotate(rack_count=Count('rack_groups'))
     return [(s.slug, '{} ({})'.format(s.name, s.rack_count)) for s in site_choices]