Tweaked display names for Racks, VLANs

This commit is contained in:
Jeremy Stretch
2016-06-22 17:12:12 -04:00
parent dea3ca187a
commit 85a50c67de
5 changed files with 9 additions and 8 deletions

View File

@@ -345,7 +345,7 @@ class VLAN(CreatedUpdatedModel):
verbose_name_plural = 'VLANs'
def __unicode__(self):
return "VLAN {}".format(self.vid)
return self.display_name
def get_absolute_url(self):
return reverse('ipam:vlan', args=[self.pk])