feat(itam): switch model Device to inheirt from CenturionModel

ref: #789 #799
This commit is contained in:
2025-06-06 13:05:50 +09:30
parent 8b8ee525f7
commit bcd66fd657
5 changed files with 299 additions and 41 deletions

View File

@ -8,7 +8,7 @@ from devops.viewsets import (
from itam.viewsets import (
index as itam_index_v2,
device as device_v2,
device,
device_software as device_software_v2,
device_operating_system,
inventory,
@ -38,8 +38,8 @@ router.register(
feature_flag = '2025-00007', basename = '_api_v2_itam_asset'
)
router.register(
prefix = 'device', viewset = device_v2.ViewSet,
basename = '_api_v2_device'
prefix = 'device', viewset = device.ViewSet,
basename = '_api_device'
)
router.register(
prefix = 'device/(?P<device_id>[0-9]+)/operating_system',