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

Converted DCIM DeviceType add/edit/delete views to CBVs

This commit is contained in:
Jeremy Stretch
2016-05-03 16:50:48 -04:00
parent da3a596d3f
commit e1479be3d0
5 changed files with 29 additions and 148 deletions

View File

@@ -293,6 +293,9 @@ class DeviceType(models.Model):
def __unicode__(self):
return "{0} {1}".format(self.manufacturer, self.model)
def get_absolute_url(self):
return reverse('dcim:devicetype', args=[self.pk])
class ConsolePortTemplate(models.Model):
"""