Sfoglia il codice sorgente

Fixes #8931: Copy assigned tenant when cloning a location

jeremystretch 3 anni fa
parent
commit
6760533a10
2 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 2 2
      docs/release-notes/version-3.2.md
  2. 1 1
      netbox/dcim/models/sites.py

+ 2 - 2
docs/release-notes/version-3.2.md

@@ -2,12 +2,12 @@
 
 ## v3.2.1 (FUTURE)
 
-### Bug Fixes (From Beta2)
+### Bug Fixes
 
+* [#8931](https://github.com/netbox-community/netbox/issues/8931) - Copy assigned tenant when cloning a location
 * [#9057](https://github.com/netbox-community/netbox/issues/9057) - Fix missing instance counts for module types
 * [#9061](https://github.com/netbox-community/netbox/issues/9061) - Change inheritance order for DeviceComponentFilterSets
 
-
 ---
 
 ## v3.2.0 (2022-04-05)

+ 1 - 1
netbox/dcim/models/sites.py

@@ -367,7 +367,7 @@ class Location(NestedGroupModel):
         to='extras.ImageAttachment'
     )
 
-    clone_fields = ['site', 'parent', 'description']
+    clone_fields = ['site', 'parent', 'tenant', 'description']
 
     class Meta:
         ordering = ['site', 'name']