mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Added views for DeviceRoles
This commit is contained in:
@@ -392,6 +392,9 @@ class DeviceRole(models.Model):
|
||||
def __unicode__(self):
|
||||
return self.name
|
||||
|
||||
def get_absolute_url(self):
|
||||
return "{}?role={}".format(reverse('dcim:device_list'), self.slug)
|
||||
|
||||
|
||||
class Platform(models.Model):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user