mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Replaces device_role with role on device model (#13342)
* replaces device_role with role on device model #6391 * fixes lint issue #6391 * revert the database user * revert test_runner comment * changes as per review * Update references to device_role column in UserConfigs --------- Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
This commit is contained in:
committed by
GitHub
parent
79030ecab2
commit
0bb86f1e7d
@ -323,7 +323,7 @@ class Rack(PrimaryModel, WeightMixin):
|
||||
devices = Device.objects.prefetch_related(
|
||||
'device_type',
|
||||
'device_type__manufacturer',
|
||||
'device_role'
|
||||
'role'
|
||||
).annotate(
|
||||
devicebay_count=Count('devicebays')
|
||||
).exclude(
|
||||
|
Reference in New Issue
Block a user