From bd24eebbf20f87626c439b6e835df708566980aa Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 5 Aug 2020 09:29:29 -0400 Subject: [PATCH] Fixes #4952: Default to VM tab when creating/editing an IP address for a VM --- docs/release-notes/version-2.9.md | 1 + netbox/templates/ipam/ipaddress_edit.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/release-notes/version-2.9.md b/docs/release-notes/version-2.9.md index 01484a7af..9bebb8499 100644 --- a/docs/release-notes/version-2.9.md +++ b/docs/release-notes/version-2.9.md @@ -17,6 +17,7 @@ * [#4931](https://github.com/netbox-community/netbox/issues/4931) - Fix DoesNotExist exception when deleting devices * [#4938](https://github.com/netbox-community/netbox/issues/4938) - Show add, import buttons on virtual chassis list view * [#4939](https://github.com/netbox-community/netbox/issues/4939) - Fix linking to LAG interfaces on other VC members +* [#4952](https://github.com/netbox-community/netbox/issues/4952) - Default to VM tab when creating/editing an IP address for a VM ### Other Changes diff --git a/netbox/templates/ipam/ipaddress_edit.html b/netbox/templates/ipam/ipaddress_edit.html index 4e2706daf..0748bc5ca 100644 --- a/netbox/templates/ipam/ipaddress_edit.html +++ b/netbox/templates/ipam/ipaddress_edit.html @@ -33,7 +33,7 @@ Interface Assignment
- {% with vm_tab_active=obj.vminterface.exists %} + {% with vm_tab_active=form.initial.vminterface %}