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

Fix auto accepting pending requests upon verification #3659

Merged
merged 7 commits into from
Oct 31, 2024

Conversation

ammar257ammar
Copy link
Contributor

@ammar257ammar ammar257ammar commented Oct 27, 2024

This fix relates to issue #2461 and PR #3514. The issue is that the logic of auto accepting pending requests upon verification was implemented in the save() method of the model. However, in Admin, the actions are performed as an update on the queryset which does not trigger the save() method, and similar behaviour affected the proper handling of permissions since the queryset update did not trigger the pre_save signals.

@ammar257ammar ammar257ammar requested a review from amickan October 27, 2024 19:43
@ammar257ammar ammar257ammar requested review from amickan and removed request for amickan October 29, 2024 08:04
@amickan amickan removed their assignment Oct 30, 2024
@jmsmkn
Copy link
Member

jmsmkn commented Oct 30, 2024

@ammar257ammar what do you want to do with this? If it is ready for review then you need to mark it as ready for review.

@ammar257ammar ammar257ammar marked this pull request as ready for review October 31, 2024 11:11
@ammar257ammar ammar257ammar merged commit 9a35fba into main Oct 31, 2024
8 checks passed
@ammar257ammar ammar257ammar deleted the auto_accept_pending_requests_upon_verification branch October 31, 2024 11:12
@ammar257ammar ammar257ammar removed their assignment Nov 7, 2024
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.

4 participants