From e13bbd86ebe4ba0e59ec14b1d95f6562972cd546 Mon Sep 17 00:00:00 2001 From: Justin Drew <2396364+jdrew82@users.noreply.github.com> Date: Tue, 21 May 2024 15:47:53 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Replace=20deprecated=20up?= =?UTF-8?q?date=5Fforward=5Frefs()=20with=20model=5Frebuild()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nautobot_ssot/integrations/aci/diffsync/models/nautobot.py | 4 ++-- .../integrations/dna_center/diffsync/models/base.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nautobot_ssot/integrations/aci/diffsync/models/nautobot.py b/nautobot_ssot/integrations/aci/diffsync/models/nautobot.py index 1a945cc7d..1c084936f 100644 --- a/nautobot_ssot/integrations/aci/diffsync/models/nautobot.py +++ b/nautobot_ssot/integrations/aci/diffsync/models/nautobot.py @@ -485,5 +485,5 @@ def delete(self): return self -NautobotDevice.update_forward_refs() -NautobotDeviceType.update_forward_refs() +NautobotDevice.model_rebuild() +NautobotDeviceType.model_rebuild() diff --git a/nautobot_ssot/integrations/dna_center/diffsync/models/base.py b/nautobot_ssot/integrations/dna_center/diffsync/models/base.py index 18888b4bb..b4c81327f 100644 --- a/nautobot_ssot/integrations/dna_center/diffsync/models/base.py +++ b/nautobot_ssot/integrations/dna_center/diffsync/models/base.py @@ -158,6 +158,6 @@ class IPAddressOnInterface(DiffSyncModel): uuid: Optional[UUID] = None -Area.update_forward_refs() -Building.update_forward_refs() -Device.update_forward_refs() +Area.model_rebuild() +Building.model_rebuild() +Device.model_rebuild()