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

Added CBVs for Manufacturers

This commit is contained in:
Jeremy Stretch
2016-05-13 15:22:31 -04:00
parent 558fb60c50
commit 4eeae08fb5
8 changed files with 139 additions and 19 deletions

View File

@@ -265,6 +265,9 @@ class Manufacturer(models.Model):
def __unicode__(self):
return self.name
def get_absolute_url(self):
return "{}?manufacturer={}".format(reverse('dcim:devicetype_list'), self.slug)
class DeviceType(models.Model):
"""