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

#6454 add prerequisite alert

This commit is contained in:
Arthur
2022-08-18 15:11:03 -07:00
parent eb3d3dcbc4
commit 928dff6b68
11 changed files with 74 additions and 8 deletions

View File

@ -406,6 +406,10 @@ class Location(NestedGroupModel):
super().validate_unique(exclude=exclude)
@classmethod
def get_prerequisite_models(cls):
return [Site, ]
def get_absolute_url(self):
return reverse('dcim:location', args=[self.pk])