You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allowing Django==4.2 causes the test tom_common.tests.TestUserManagement.test_user_can_update_self to fail.
We should look into this if we want to allow for newer versions of Django.
The text was updated successfully, but these errors were encountered:
Replacing UserCreationForm with BaseUserCreationForm in tom_common.forms.CustomUserCreationForm resolves this issue.
The failure was happening in that the form was found to be invalid with the error A user with that username already exists.
In the test, the username is identical in the update, and shouldn't trigger this error since it's being done as part of an update, not a new object. I think the issue is using a UserCreationForm to perform an update rather than creating an entirely new user, but I'm not sure why the BaseUserCreationForm wouldn't care about this.
Allowing Django==4.2 causes the test
tom_common.tests.TestUserManagement.test_user_can_update_self
to fail.We should look into this if we want to allow for newer versions of Django.
The text was updated successfully, but these errors were encountered: