-
-
Notifications
You must be signed in to change notification settings - Fork 165
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
invite_accepted signal not firing #116
Comments
Hi |
Hey @ShuklaMadhur you can go to my profile and pull my repo that has the fix. https://github.com/AaronKazah/django-invitations or you can install it to your django project by running this |
Hi @aaronkazah Thanks for your reply. Its still not working for me. (Nothing gets printed in my case ) @receiver(invite_accepted, sender=auth.models.AnonymousUser) |
@ShuklaMadhur You don't need the sender anymore, since we're passing the request along with it. Instead of: |
@aaronkazah if you want to PR your changes, ideally with a test am happy to merge. Sorry have been busy with other stuff and not been a very active maintainer.. |
Thanks @aaronkazah it works now. :) |
@aaronkazah @bee-keeper can I access the inviter in the invite-accepted ? the request.user is always anonymous. Basically I want to reward the inviter when the person he invited accepts. |
The signal "invite_accepted" isn't firing even when using the examples provided in django-invitations signals file as shown below.
This issue is caused is mainly caused because 'request' isn't being passed as an argument when the signal is called.
This procedure below
should be
The text was updated successfully, but these errors were encountered: