Closed Xenox40 closed 1 year ago
Closes #244.
This small change fixes the issue by renaming the class responsible for enforcing password confirmation when user wants to change its email address.
The UserChangeForm class introduced in https://github.com/sio2project/oioioi/commit/363ce7601719240a532cbe0585b6d57eaa70d393 https://github.com/sio2project/oioioi/blob/40a377d3f2d5cd9c94d01f03e197501ce4aab597/oioioi/base/forms.py#L235-L257 shadows the django one imported earlier https://github.com/sio2project/oioioi/blob/40a377d3f2d5cd9c94d01f03e197501ce4aab597/oioioi/base/forms.py#L8-L12 which is used as a base for admin's user change form https://github.com/sio2project/oioioi/blob/40a377d3f2d5cd9c94d01f03e197501ce4aab597/oioioi/base/forms.py#L266-L270
UserChangeForm
I rerun the tests, which pass in my local testing, just not here. This is simple change, which fixes a bug. I would appreciate merging it!
Thank You for quick reaction!
Closes #244.
This small change fixes the issue by renaming the class responsible for enforcing password confirmation when user wants to change its email address.
The
UserChangeForm
class introduced in https://github.com/sio2project/oioioi/commit/363ce7601719240a532cbe0585b6d57eaa70d393 https://github.com/sio2project/oioioi/blob/40a377d3f2d5cd9c94d01f03e197501ce4aab597/oioioi/base/forms.py#L235-L257 shadows the django one imported earlier https://github.com/sio2project/oioioi/blob/40a377d3f2d5cd9c94d01f03e197501ce4aab597/oioioi/base/forms.py#L8-L12 which is used as a base for admin's user change form https://github.com/sio2project/oioioi/blob/40a377d3f2d5cd9c94d01f03e197501ce4aab597/oioioi/base/forms.py#L266-L270