Description
I've created a basic project to test the possibility of using Unfold. All I've done is create an app called Users and set up a CustomUser model but I'm getting 302 errors when trying to navigate to the change password form:
[18/May/2024 10:01:33] "GET /admin/users/customuser/1/password/ HTTP/1.1" 302 0
[18/May/2024 10:01:33] "GET /admin/users/customuser/1/password/change/ HTTP/1.1" 302 0
The change password form works fine if I'm not using a custom user model or if I'm not using Unfold. I'm not sure how to go about fixing the problem.
The object being passed seems to be incorrect attaching /password to it
print(resolve('/admin/users/customuser/1/password/'))
ResolverMatch(func=django.views.generic.base.RedirectView, args=(), kwargs={'object_id': '1/password'}, url_name=None, app_names=['admin'], namespaces=['admin'], route='admin/users/customuser/path:object_id/', captured_kwargs={'object_id': '1/password'})
print(resolve('/admin/users/customuser/1/password/change/'))
ResolverMatch(func=django.contrib.admin.options.change_view, args=(), kwargs={'object_id': '1/password'}, url_name='users_customuser_change', app_names=['admin'], namespaces=['admin'], route='admin/users/customuser/path:object_id/change/', captured_kwargs={'object_id': '1/password'})
As far as I know, I am properly importing from Unfold as stated in the documentation.
Any help would be much appreciated.