Replies: 1 comment 1 reply
-
I don't have any guidance on the https://github.com/pennersr/django-allauth/blob/main/allauth/account/adapter.py#L277 Additionally, I am wondering why you would want to do this at all? Semantically, the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I haven't tracked down why exactly yet, but something simple like:
Has broken in Allauth 0.61.1. I upgraded from 0.51.0 and can confirm this was working as intended (where the username was being updated correctly and then saved back to the DB) in 0.51.0.
What is stumping me right now, is debugging through allauth's code, the instance object does correctly get the proper username field updated, right up until the response back to the frontend, except it's never then saved back to the DB like it was before.
Update 1: If I save the model manually after or from the admin (outside AllAuth's request flow), it updates as expected. I believe this is only an issue when the user is updating their primary email from the template/view, something in that flow is preventing the instance from being updated it seems.
Update 2: Doesn't seem specific to the pre_save, if I move the logic into the model's save method, it does the same thing.
I'm still working through it, but has anyone encountered this?
Beta Was this translation helpful? Give feedback.
All reactions