-
Notifications
You must be signed in to change notification settings - Fork 134
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
Soft delete xform from legacy UI #2503
Conversation
fc80e9a
to
06bc8c3
Compare
"submission.xml", | ||
) | ||
self._make_submission(path) | ||
x += 1 |
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.
Why do we increment?
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.
There's no need for, this, I've removed this line
Don't call xform.delete() method which soft deletes
06bc8c3
to
3329c5f
Compare
@@ -504,8 +503,8 @@ def delete_xform(request, username, id_string): | |||
{"user__username__iexact": username, "id_string__iexact": id_string} | |||
) | |||
|
|||
# delete xform and submissions | |||
remove_xform(xform) |
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.
Should we also delete the function remove_xform
since it is no longer required?
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.
done!
Don't call
xform.delete()
method which soft deletesBefore submitting this PR for review, please make sure you have: