-
Notifications
You must be signed in to change notification settings - Fork 57
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 for #244 #245
base: main
Are you sure you want to change the base?
Fix for #244 #245
Conversation
Mael Pedretti seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
This PR was closed because it has been stalled for 10 days with no activity. |
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.
Hey @73VW,
Thanks for your contribution! Please fix the tests and address the comment.
Co-authored-by: Mostafa Moradian <[email protected]>
Hello @mostafa, Thank you for your reply! This is a breaking change and I don't know if you want to merge it as is because backwards compatibility won't be ensured. Is that fine for you? |
@mostafa Is it possible to progress this PR? It's causing issues in ours repos that implement the package as we're not passing email as username, so would be great to be able to have this in a new version as soon as possible. email = user.get(user_model.EMAIL_FIELD)
kwargs = {"email": email} if email else {}
target_user = create_new_user(user_id, user["first_name"], user["last_name"], **kwargs) I believe this will be backwards compatible. Thanks! |
Hello @mostafa,
Here's a starting point for a fix for #244.
I am not really sure how I should implement a test for this nor if this is the best way to implement it.
Tell me what do you think about this.
Cheers!