From a43dc4c3098d91dbea2361c288c120a7a65835b0 Mon Sep 17 00:00:00 2001 From: Oliver Falk Date: Tue, 28 Oct 2025 20:03:38 +0100 Subject: [PATCH] Fix deprecated User.objects.make_random_password() for Django 4.2+ - Replace User.objects.make_random_password() with User.make_random_password() - Fixes AttributeError in password reset functionality - Ensures compatibility with Django 4.2+ where the method was moved from UserManager to User model Fixes #102 --- ivatar/ivataraccount/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ivatar/ivataraccount/views.py b/ivatar/ivataraccount/views.py index b664e27..c754583 100644 --- a/ivatar/ivataraccount/views.py +++ b/ivatar/ivataraccount/views.py @@ -1252,7 +1252,7 @@ class PasswordResetView(PasswordResetViewOriginal): # reset request if user: if not user.password or user.password.startswith("!"): - random_pass = User.objects.make_random_password() + random_pass = User.make_random_password() user.set_password(random_pass) user.save()