From 845d467fd97ab499e5547b16b16af5e385d9d483 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Fri, 9 Nov 2018 09:46:30 -0500 Subject: [PATCH] Fixes #2575: Correct model specified for rack roles table --- CHANGELOG.md | 1 + netbox/dcim/tables.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 88ef26a6a..fd9ded8a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ v2.4.8 (FUTURE) ## Bug Fixes * [#2473](https://github.com/digitalocean/netbox/issues/2473) - Fix encoding of long (>127 character) secrets +* [#2575](https://github.com/digitalocean/netbox/issues/2575) - Correct model specified for rack roles table --- diff --git a/netbox/dcim/tables.py b/netbox/dcim/tables.py index 2630a9ba2..edd30d89f 100644 --- a/netbox/dcim/tables.py +++ b/netbox/dcim/tables.py @@ -9,7 +9,7 @@ from .models import ( ConsolePort, ConsolePortTemplate, ConsoleServerPort, ConsoleServerPortTemplate, Device, DeviceBay, DeviceBayTemplate, DeviceRole, DeviceType, Interface, InterfaceConnection, InterfaceTemplate, InventoryItem, Manufacturer, Platform, PowerOutlet, PowerOutletTemplate, PowerPort, PowerPortTemplate, Rack, RackGroup, - RackReservation, Region, Site, VirtualChassis, + RackReservation, RackRole, Region, Site, VirtualChassis, ) REGION_LINK = """ @@ -250,7 +250,7 @@ class RackRoleTable(BaseTable): verbose_name='') class Meta(BaseTable.Meta): - model = RackGroup + model = RackRole fields = ('pk', 'name', 'rack_count', 'color', 'slug', 'actions')