mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-24 17:38:37 -06:00
Fixes #5453: Correct change log representation when creating a cable
This commit is contained in:
parent
14a46f82ee
commit
67f9e16905
@ -1,13 +1,16 @@
|
|||||||
# NetBox v2.10
|
# NetBox v2.10
|
||||||
|
|
||||||
## v2.10.1 (Future Release)
|
## v2.10.1 (FUTURE)
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
|
* [#5453](https://github.com/netbox-community/netbox/issues/5453) - Correct change log representation when creating a cable
|
||||||
* [#5458](https://github.com/netbox-community/netbox/issues/5458) - Creating a component template throws an exception
|
* [#5458](https://github.com/netbox-community/netbox/issues/5458) - Creating a component template throws an exception
|
||||||
* [#5461](https://github.com/netbox-community/netbox/issues/5461) - Rack Elevations throw reverse match exception
|
* [#5461](https://github.com/netbox-community/netbox/issues/5461) - Rack Elevations throw reverse match exception
|
||||||
* [#5463](https://github.com/netbox-community/netbox/issues/5463) - Back-to-back Circuit Termination throws AttributeError exception
|
* [#5463](https://github.com/netbox-community/netbox/issues/5463) - Back-to-back Circuit Termination throws AttributeError exception
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## v2.10.0 (2020-12-14)
|
## v2.10.0 (2020-12-14)
|
||||||
|
|
||||||
**NOTE:** This release completely removes support for embedded graphs.
|
**NOTE:** This release completely removes support for embedded graphs.
|
||||||
|
@ -147,7 +147,8 @@ class Cable(ChangeLoggedModel, CustomFieldModel):
|
|||||||
return instance
|
return instance
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.label or '#{}'.format(self._pk)
|
pk = self.pk or self._pk
|
||||||
|
return self.label or f'#{pk}'
|
||||||
|
|
||||||
def get_absolute_url(self):
|
def get_absolute_url(self):
|
||||||
return reverse('dcim:cable', args=[self.pk])
|
return reverse('dcim:cable', args=[self.pk])
|
||||||
|
Loading…
Reference in New Issue
Block a user