nautobot-app-ssot icon indicating copy to clipboard operation
nautobot-app-ssot copied to clipboard

Allow not controlling all objects in many-to-many relationship with contrib

Open Kircheneer opened this issue 1 year ago • 1 comments

Environment

Currently set is used on the relationship: https://github.com/nautobot/nautobot-app-ssot/blob/ltm-1.6/nautobot_ssot/contrib/model.py#L305

Proposed Functionality

Make it possible to not control all objects associated through a many to many relationship.

Use Case

For example to keep existing tags when adding new ones.

Kircheneer avatar Oct 29 '24 10:10 Kircheneer

This may be solvable by providing a way to control the scope of the queryset on many to many relationships, i.e. only tags.filter(name__startswith="some_prefix").

Kircheneer avatar Oct 29 '24 10:10 Kircheneer