mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-25 16:56:10 -06:00
6347 reindent migration
This commit is contained in:
parent
4f193b63c4
commit
9fce8b8efe
@ -17,30 +17,18 @@ class DCIMConfig(AppConfig):
|
||||
from utilities.counter import connect_counter
|
||||
|
||||
# Register denormalized fields
|
||||
denormalized.register(
|
||||
CableTermination,
|
||||
'_device',
|
||||
{
|
||||
denormalized.register(CableTermination, '_device', {
|
||||
'_rack': 'rack',
|
||||
'_location': 'location',
|
||||
'_site': 'site',
|
||||
},
|
||||
)
|
||||
denormalized.register(
|
||||
CableTermination,
|
||||
'_rack',
|
||||
{
|
||||
})
|
||||
denormalized.register(CableTermination, '_rack', {
|
||||
'_location': 'location',
|
||||
'_site': 'site',
|
||||
},
|
||||
)
|
||||
denormalized.register(
|
||||
CableTermination,
|
||||
'_location',
|
||||
{
|
||||
})
|
||||
denormalized.register(CableTermination, '_location', {
|
||||
'_site': 'site',
|
||||
},
|
||||
)
|
||||
})
|
||||
|
||||
connect_counter('_console_port_count', ConsolePort.device)
|
||||
connect_counter('_console_server_port_count', ConsoleServerPort.device)
|
||||
|
Loading…
Reference in New Issue
Block a user