From 7f5571200c5deeb0d805fe8bee80af210f70a399 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 18 Mar 2020 14:50:49 -0400 Subject: [PATCH] Closes #4382: Enable custom links for rack reservations --- docs/release-notes/version-2.7.md | 1 + netbox/dcim/models/__init__.py | 2 +- netbox/templates/dcim/rackreservation.html | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/release-notes/version-2.7.md b/docs/release-notes/version-2.7.md index 4891071f2..654f1726d 100644 --- a/docs/release-notes/version-2.7.md +++ b/docs/release-notes/version-2.7.md @@ -9,6 +9,7 @@ * [#4369](https://github.com/netbox-community/netbox/issues/4369) - Add a dedicated view for rack reservations * [#4380](https://github.com/netbox-community/netbox/issues/4380) - Enable webhooks for rack reservations * [#4381](https://github.com/netbox-community/netbox/issues/4381) - Enable export templates for rack reservations +* [#4382](https://github.com/netbox-community/netbox/issues/4382) - Enable custom links for rack reservations ### Bug Fixes diff --git a/netbox/dcim/models/__init__.py b/netbox/dcim/models/__init__.py index 23b2618b5..5b93d3598 100644 --- a/netbox/dcim/models/__init__.py +++ b/netbox/dcim/models/__init__.py @@ -739,7 +739,7 @@ class Rack(ChangeLoggedModel, CustomFieldModel): return 0 -@extras_features('export_templates', 'webhooks') +@extras_features('custom_links', 'export_templates', 'webhooks') class RackReservation(ChangeLoggedModel): """ One or more reserved units within a Rack. diff --git a/netbox/templates/dcim/rackreservation.html b/netbox/templates/dcim/rackreservation.html index ef9e49d23..be9766557 100644 --- a/netbox/templates/dcim/rackreservation.html +++ b/netbox/templates/dcim/rackreservation.html @@ -36,6 +36,9 @@

{% block title %}{{ rackreservation }}{% endblock %}

{% include 'inc/created_updated.html' with obj=rackreservation %} +
+ {% custom_links rackreservation %} +