-
Notifications
You must be signed in to change notification settings - Fork 0
Account deletion must be confirmed #95
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
Conversation
nuest
left a comment
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 added a few comments, please take a look.
Also, the tests are still missing. Since you're working against API endpoints, I'm fine with tests directly talking to the API, but UI-based tests (or both) would be even better.
|
@uxairibrar Sorry if I interrupted your development flow with my question. Please let me know when the PR is ready for review! An in the future: what about you converting a PR back to "draft" when you are pushing changes piecewise? |
Yes, sure, it will be easy for both of us. However I also added the UI test for this PR, I think it is ready to be reviewed. |
nuest
left a comment
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.
A few comments here and there, but I'm happy overall.
publications/views.py
Outdated
| messages.error(request, "You are not authorized to delete this account.") | ||
| return redirect(reverse('optimap:main')) | ||
|
|
||
| user = get_object_or_404(User, id=user_id) |
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.
The user object here is not used at all.
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 have removed it
Closes #25