1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #15292: Remove obsolete device_role attribute from Device model

This commit is contained in:
Jeremy Stretch
2024-02-29 08:53:45 -05:00
parent 125a493dc6
commit 709eac6b98
6 changed files with 18 additions and 60 deletions

View File

@ -476,7 +476,7 @@ class NewBranchScript(Script):
name=f'{site.slug}-switch{i}',
site=site,
status=DeviceStatusChoices.STATUS_PLANNED,
device_role=switch_role
role=switch_role
)
switch.full_clean()
switch.save()