Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tracked by #630
Kircheneer opened this issue Oct 29, 2024 · 1 comment
Open
Tracked by #630
Labels
integration: contrib Contrib related issues and PRs status: accepted This issue has been accepted by the maintainers team for implementation type: enhancement New feature or request

Comments

@Kircheneer
Copy link
Contributor

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 Kircheneer added status: accepted This issue has been accepted by the maintainers team for implementation type: enhancement New feature or request integration: contrib Contrib related issues and PRs labels Oct 29, 2024
@Kircheneer
Copy link
Contributor Author

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").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration: contrib Contrib related issues and PRs status: accepted This issue has been accepted by the maintainers team for implementation type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant