diff options
| author | sdolemelipone <mark.gensler@protonmail.com> | 2022-11-27 19:49:02 +0000 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-11-29 05:56:53 +0100 |
| commit | 9d726c7902979d4ad53945ed8f1037266a88010d (patch) | |
| tree | 45c834fc4afead096d63cdcc6b50c733b5337a0a /docs | |
| parent | 60a7bd89860e504c0c33b02c78edcac87f6d1b5a (diff) | |
Fixed #34187 -- Made UserCreationForm save many-to-many fields.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/4.2.txt | 3 | ||||
| -rw-r--r-- | docs/topics/auth/customizing.txt | 5 | ||||
| -rw-r--r-- | docs/topics/auth/default.txt | 5 |
3 files changed, 13 insertions, 0 deletions
diff --git a/docs/releases/4.2.txt b/docs/releases/4.2.txt index a9841d1af4..fe74e8485a 100644 --- a/docs/releases/4.2.txt +++ b/docs/releases/4.2.txt @@ -65,6 +65,9 @@ Minor features * The default iteration count for the PBKDF2 password hasher is increased from 390,000 to 480,000. +* :class:`~django.contrib.auth.forms.UserCreationForm` now saves many-to-many + form fields for a custom user model. + :mod:`django.contrib.contenttypes` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/docs/topics/auth/customizing.txt b/docs/topics/auth/customizing.txt index c77e6c599d..9c0a256d25 100644 --- a/docs/topics/auth/customizing.txt +++ b/docs/topics/auth/customizing.txt @@ -840,6 +840,11 @@ extend these forms in this manner:: model = CustomUser fields = UserCreationForm.Meta.fields + ('custom_field',) +.. versionchanged:: 4.2 + + In older versions, :class:`~django.contrib.auth.forms.UserCreationForm` + didn't save many-to-many form fields for a custom user model. + Custom users and :mod:`django.contrib.admin` -------------------------------------------- diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt index fb5d04752d..549430aaad 100644 --- a/docs/topics/auth/default.txt +++ b/docs/topics/auth/default.txt @@ -1665,6 +1665,11 @@ provides several built-in forms located in :mod:`django.contrib.auth.forms`: sets the user's password using :meth:`~django.contrib.auth.models.User.set_password()`. + .. versionchanged:: 4.2 + + In older versions, :class:`UserCreationForm` didn't save many-to-many + form fields for a custom user model. + .. currentmodule:: django.contrib.auth Authentication data in templates |
