diff --git a/inclusion_connect/users/admin.py b/inclusion_connect/users/admin.py index 8606bcec..d02049b0 100644 --- a/inclusion_connect/users/admin.py +++ b/inclusion_connect/users/admin.py @@ -54,6 +54,7 @@ def __init__(self, user, *args, **kwargs): super().__init__(*args, **kwargs) def clean_password(self): + self.cleaned_data["set_usable_password"] = True password = self.cleaned_data.get("password") password_validation.validate_password(password, self.user) return password diff --git a/requirements/base.in b/requirements/base.in index 5f1933dd..7889a1de 100644 --- a/requirements/base.in +++ b/requirements/base.in @@ -3,7 +3,7 @@ psycopg[binary] # https://github.com/psycopg/psycopg # Django # ------------------------------------------------------------------------------ -django==5.0.* # https://www.djangoproject.com/ +django==5.1.* # https://www.djangoproject.com/ django-oauth-toolkit # https://github.com/jazzband/django-oauth-toolkit diff --git a/requirements/base.txt b/requirements/base.txt index 65951b13..e9bc6f8f 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -226,9 +226,9 @@ dj-database-url==2.2.0 \ --hash=sha256:3e792567b0aa9a4884860af05fe2aa4968071ad351e033b6db632f97ac6db9de \ --hash=sha256:9f9b05058ddf888f1e6f840048b8d705ff9395e3b52a07165daa3d8b9360551b # via -r requirements/base.in -django==5.0.9 \ - --hash=sha256:6333870d342329b60174da3a60dbd302e533f3b0bb0971516750e974a99b5a39 \ - --hash=sha256:f219576ba53be4e83f485130a7283f0efde06a9f2e3a7c3c5180327549f078fa +django==5.1.2 \ + --hash=sha256:bd7376f90c99f96b643722eee676498706c9fd7dc759f55ebfaf2c08ebcdf4f0 \ + --hash=sha256:f11aa87ad8d5617171e3f77e1d5d16f004b79a2cf5d2e1d2b97a6a1f8e9ba5ed # via # -r requirements/base.in # dj-database-url diff --git a/requirements/dev.txt b/requirements/dev.txt index 8d85e806..f407bce6 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -330,9 +330,9 @@ dj-database-url==2.2.0 \ --hash=sha256:3e792567b0aa9a4884860af05fe2aa4968071ad351e033b6db632f97ac6db9de \ --hash=sha256:9f9b05058ddf888f1e6f840048b8d705ff9395e3b52a07165daa3d8b9360551b # via -r requirements/base.txt -django==5.0.9 \ - --hash=sha256:6333870d342329b60174da3a60dbd302e533f3b0bb0971516750e974a99b5a39 \ - --hash=sha256:f219576ba53be4e83f485130a7283f0efde06a9f2e3a7c3c5180327549f078fa +django==5.1.2 \ + --hash=sha256:bd7376f90c99f96b643722eee676498706c9fd7dc759f55ebfaf2c08ebcdf4f0 \ + --hash=sha256:f11aa87ad8d5617171e3f77e1d5d16f004b79a2cf5d2e1d2b97a6a1f8e9ba5ed # via # -r requirements/base.txt # dj-database-url diff --git a/tests/__snapshots__/test_template_tags.ambr b/tests/__snapshots__/test_template_tags.ambr index b20da47d..d824f592 100644 --- a/tests/__snapshots__/test_template_tags.ambr +++ b/tests/__snapshots__/test_template_tags.ambr @@ -1,7 +1,7 @@ # serializer version: 1 # name: test_new_password_display[new password has instructions] ''' -