Use platform id instead of record

This commit is contained in:
DeathRabbit679 2022-06-21 12:34:14 -05:00 committed by GitHub
parent be770a947a
commit a8f21c7881
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -274,7 +274,7 @@ class ServerBase():
serial=serial,
device_role=device_role.id,
device_type=device_type.id,
platform=self.device_platform,
platform=self.device_platform.id,
site=datacenter.id if datacenter else None,
tenant=tenant.id if tenant else None,
rack=rack.id if rack else None,