Przeglądaj źródła

fixes #2484 - Local config context not available on the Virtual Machine Edit Form

John Anderson 7 lat temu
rodzic
commit
1b2e9a6d06
2 zmienionych plików z 3 dodań i 2 usunięć
  1. 2 1
      CHANGELOG.md
  2. 1 1
      netbox/virtualization/forms.py

+ 2 - 1
CHANGELOG.md

@@ -2,7 +2,8 @@ v2.4.6 (FUTURE)
 
 ## Bug Fixes
 
-[#2483](https://github.com/digitalocean/netbox/issues/2483) - Set max item count of API-populated form fields to MAX_PAGE_SIZE
+* [#2483](https://github.com/digitalocean/netbox/issues/2483) - Set max item count of API-populated form fields to MAX_PAGE_SIZE
+* [#2484](https://github.com/digitalocean/netbox/issues/2484) - Local config context not available on the Virtual Machine Edit Form
 
 ---
 

+ 1 - 1
netbox/virtualization/forms.py

@@ -253,7 +253,7 @@ class VirtualMachineForm(BootstrapMixin, TenancyForm, CustomFieldForm):
         model = VirtualMachine
         fields = [
             'name', 'status', 'cluster_group', 'cluster', 'role', 'tenant', 'platform', 'primary_ip4', 'primary_ip6',
-            'vcpus', 'memory', 'disk', 'comments', 'tags',
+            'vcpus', 'memory', 'disk', 'comments', 'tags', 'local_context_data',
         ]
         help_texts = {
             'local_context_data': "Local config context data overwrites all sources contexts in the final rendered config context",