-
Notifications
You must be signed in to change notification settings - Fork 39
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
Delete Submission permission, view and link #1145
Conversation
request=request, | ||
submission=submission, | ||
) | ||
response = super().delete(request, *args, **kwargs) |
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.
Ideally, the message should be sent after deletion of submission. But the messaging system requires Event model object which has a non-null foreign key to submission. We have to make some changes in the messaging system to make event optional. Suggestions?
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.
I do not think will be a problem. In worst case senario the submission is not deleted but OTF staff get a notice that it has been deleted. Nice work!
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.
yeah, it should not be an issue.
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.
Works well. Added a migration and some info to the confirm delete template.
request=request, | ||
submission=submission, | ||
) | ||
response = super().delete(request, *args, **kwargs) |
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.
I do not think will be a problem. In worst case senario the submission is not deleted but OTF staff get a notice that it has been deleted. Nice work!
@frjo Thanks for the review and adding missing migration. |
6dca87f
to
7db7414
Compare
Groups can be given delete submission permission from Wagtail admin.
Closes #728