summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorThibaut Decombe <thibaut.decombe@gmail.com>2025-07-13 20:01:02 +0200
committerJacob Walls <jacobtylerwalls@gmail.com>2025-10-14 08:15:01 -0400
commitb077982b3eb4be9bb86d670221902442efb7ab31 (patch)
tree7d326a58ba115ba5b9dcee9daf2dd4297a052d71 /django
parent50d31aeb4993cc5f221cb5addad1d5a6e664a092 (diff)
[6.0.x] Refs #31223 -- Added __class_getitem__() to SetPasswordMixin.
Backport of d0c8f89c942d1379724bdd37127076d13452f71d from main.
Diffstat (limited to 'django')
-rw-r--r--django/contrib/auth/forms.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/django/contrib/auth/forms.py b/django/contrib/auth/forms.py
index 2214e134d0..aff0cca342 100644
--- a/django/contrib/auth/forms.py
+++ b/django/contrib/auth/forms.py
@@ -134,6 +134,9 @@ class SetPasswordMixin:
user.save()
return user
+ def __class_getitem__(cls, *args, **kwargs):
+ return cls
+
class SetUnusablePasswordMixin:
"""