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

#2627: Removed reference to provider from Circuit.__str__()

This commit is contained in:
Jeremy Stretch
2018-12-11 11:15:45 -05:00
parent 93c95fdfa8
commit b697c30941
6 changed files with 39 additions and 12 deletions

View File

@@ -176,7 +176,7 @@ class Circuit(ChangeLoggedModel, CustomFieldModel):
unique_together = ['provider', 'cid']
def __str__(self):
return '{} {}'.format(self.provider, self.cid)
return self.cid
def get_absolute_url(self):
return reverse('circuits:circuit', args=[self.pk])