Add CloningMixin to plugins API #6962

Closed
opened 2025-12-29 19:47:13 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Sep 9, 2022).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.3.2

Feature type

New functionality

Proposed functionality

Document support for the use of CloningMixin by plugins.

Use case

CloningMixin was introduced internally under #10304 to provide the clone() method to models which don't inherit from NetBoxModel. In keeping with convention, we should make it available for plugins just like the other model feature mixins.

Database changes

No response

External dependencies

No response

Originally created by @jeremystretch on GitHub (Sep 9, 2022). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.3.2 ### Feature type New functionality ### Proposed functionality Document support for the use of [CloningMixin](https://github.com/netbox-community/netbox/blob/6b9eb57de79dc1cce13a1f297ca749f7b401d7c6/netbox/netbox/models/features.py#L86) by plugins. ### Use case CloningMixin was introduced internally under #10304 to provide the `clone()` method to models which don't inherit from NetBoxModel. In keeping with convention, we should make it available for plugins just like the other [model feature mixins](https://docs.netbox.dev/en/stable/plugins/development/models/#feature-mixins-reference). ### Database changes _No response_ ### External dependencies _No response_
adam added the status: acceptedtype: featuretopic: plugins labels 2025-12-29 19:47:13 +01:00
adam closed this issue 2025-12-29 19:47:13 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6962