-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Add admin functions for wiping a version #5140
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 admin functions for wiping a version #5140
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
readthedocs/core/utils/general.py
Outdated
|
||
def wipe_version_via_slug(version_slug): | ||
"""Wipes the given version.""" | ||
version = get_object_or_404(Version, slug=version_slug) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be filtering by a project, not just a version slug.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay.
I have pushed the changes.
@ericholscher |
@ericholscher |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. 👍
Thanks! |
Closes #3684