mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Ditched get_parent_url() model method in favor of overrideable get_return_url() view method
This commit is contained in:
@@ -578,6 +578,3 @@ class Service(CreatedUpdatedModel):
|
||||
|
||||
def __unicode__(self):
|
||||
return u'{} ({}/{})'.format(self.name, self.port, self.get_protocol_display())
|
||||
|
||||
def get_parent_url(self):
|
||||
return self.device.get_absolute_url()
|
||||
|
Reference in New Issue
Block a user