1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #11205: Correct cloning behavior for recursively-nested models

This commit is contained in:
jeremystretch
2022-12-15 16:04:29 -05:00
parent f8685ad7aa
commit 951f82b428
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@
### Bug Fixes ### Bug Fixes
* [#11185](https://github.com/netbox-community/netbox/issues/11185) - Fix TemplateSyntaxError when viewing custom script results * [#11185](https://github.com/netbox-community/netbox/issues/11185) - Fix TemplateSyntaxError when viewing custom script results
* [#11205](https://github.com/netbox-community/netbox/issues/11205) - Correct cloning behavior for recursively-nested models
--- ---

View File

@ -75,7 +75,7 @@ class PrimaryModel(NetBoxModel):
abstract = True abstract = True
class NestedGroupModel(NetBoxFeatureSet, MPTTModel): class NestedGroupModel(CloningMixin, NetBoxFeatureSet, MPTTModel):
""" """
Base model for objects which are used to form a hierarchy (regions, locations, etc.). These models nest Base model for objects which are used to form a hierarchy (regions, locations, etc.). These models nest
recursively using MPTT. Within each parent, each child instance must have a unique name. recursively using MPTT. Within each parent, each child instance must have a unique name.