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

Override InvitationAdapter #123

Open
dimkoug opened this issue Jun 18, 2019 · 3 comments
Open

Override InvitationAdapter #123

dimkoug opened this issue Jun 18, 2019 · 3 comments

Comments

@dimkoug
Copy link

dimkoug commented Jun 18, 2019

I want to override InvitationAdapter

Add get
AttributeError: 'BaseInvitationsAdapter' object has no attribute 'get_user_signed_up_signal'

@sajjadafridi
Copy link

i think in the simple authentication there is no signup signal, you can use login a user and than add after login signal

@benopotamus
Copy link

benopotamus commented Aug 27, 2022

For my particular case, I have created an "accounts" app where I put all my accounts related files. In the __init__.py for the app, I put the following delightful monkey patch 🙉

from invitations import adapters

def new_get_invitations_adapter():
	from allauth.account.adapter import get_adapter
	return get_adapter()

adapters.get_invitations_adapter = new_get_invitations_adapter

@pbadeer
Copy link

pbadeer commented Nov 27, 2022

Relates to #157

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

No branches or pull requests

4 participants