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

Clean up stray references to old RackGroup model

This commit is contained in:
jeremystretch
2021-04-11 13:43:06 -04:00
parent 65ed047084
commit 0bce1da4e3
4 changed files with 7 additions and 7 deletions

View File

@@ -66,9 +66,9 @@ class PowerPanel(PrimaryModel):
# Location must belong to assigned Site
if self.location and self.location.site != self.site:
raise ValidationError("Rack group {} ({}) is in a different site than {}".format(
self.location, self.location.site, self.site
))
raise ValidationError(
f"Location {self.location} ({self.location.site}) is in a different site than {self.site}"
)
@extras_features('custom_fields', 'custom_links', 'export_templates', 'webhooks')