Skip to content

Commit

Permalink
fix: 🐛 Replace deprecated update_forward_refs() with model_rebuild()
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrew82 committed May 21, 2024
1 parent 5519a81 commit e13bbd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions nautobot_ssot/integrations/aci/diffsync/models/nautobot.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,5 +485,5 @@ def delete(self):
return self


NautobotDevice.update_forward_refs()
NautobotDeviceType.update_forward_refs()
NautobotDevice.model_rebuild()
NautobotDeviceType.model_rebuild()
6 changes: 3 additions & 3 deletions nautobot_ssot/integrations/dna_center/diffsync/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit e13bbd8

Please sign in to comment.