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

Add an admin action to remove orphaned tags #917

Merged
merged 4 commits into from
Oct 10, 2024

Conversation

guel-codes
Copy link
Contributor

Overview

We have a management command to remove orphaned tags but I also wanted to add functionality to do it as an admin action from the drop down list.

Preview

@rtpg rtpg force-pushed the admin-orphaned-tags branch from 89c37e6 to 1676c77 Compare October 9, 2024 03:59
@rtpg
Copy link
Contributor

rtpg commented Oct 9, 2024

Alright, tweaked this one up to have an orphaned queryset method, and so that the orphan cleanup only happens within the selected tags (matching the principle that actions occur only among the selected data, it's two clicks to select everything)

@rtpg rtpg force-pushed the admin-orphaned-tags branch from 42e359d to 2181a42 Compare October 9, 2024 04:05
@rtpg rtpg merged commit f4f82af into jazzband:master Oct 10, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants