diff options
| author | nessita <124304+nessita@users.noreply.github.com> | 2024-08-22 09:14:11 -0300 |
|---|---|---|
| committer | Natalia <124304+nessita@users.noreply.github.com> | 2024-08-22 09:15:28 -0300 |
| commit | 7acec02554f3e254bee3c1ea65ed27c3c145ad68 (patch) | |
| tree | b6ff2bea86b1c1456c60b2325381e497a4609fee | |
| parent | da22e6cb3cdb51f2f7ca45e1591d2c6a8be458e0 (diff) | |
[5.1.x] Sorted alphabetically forms list in docs/topics/auth/default.txt.
Backport of 7adb6dd98d50a238f3eca8c15b16b5aec12575fd from main.
| -rw-r--r-- | docs/topics/auth/default.txt | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt index d184b979fe..15af779dfe 100644 --- a/docs/topics/auth/default.txt +++ b/docs/topics/auth/default.txt @@ -1728,6 +1728,18 @@ provides several built-in forms located in :mod:`django.contrib.auth.forms`: code="no_b_users", ) +.. class:: BaseUserCreationForm + + A :class:`~django.forms.ModelForm` for creating a new user. This is the + recommended base class if you need to customize the user creation form. + + It has three fields: ``username`` (from the user model), ``password1``, + and ``password2``. It verifies that ``password1`` and ``password2`` match, + validates the password using + :func:`~django.contrib.auth.password_validation.validate_password`, and + sets the user's password using + :meth:`~django.contrib.auth.models.User.set_password()`. + .. class:: PasswordChangeForm A form for allowing a user to change their password. @@ -1767,18 +1779,6 @@ provides several built-in forms located in :mod:`django.contrib.auth.forms`: A form used in the admin interface to change a user's information and permissions. -.. class:: BaseUserCreationForm - - A :class:`~django.forms.ModelForm` for creating a new user. This is the - recommended base class if you need to customize the user creation form. - - It has three fields: ``username`` (from the user model), ``password1``, - and ``password2``. It verifies that ``password1`` and ``password2`` match, - validates the password using - :func:`~django.contrib.auth.password_validation.validate_password`, and - sets the user's password using - :meth:`~django.contrib.auth.models.User.set_password()`. - .. class:: UserCreationForm Inherits from :class:`BaseUserCreationForm`. To help prevent confusion with |
