mirror of
https://github.com/django/django.git
synced 2024-11-29 14:46:18 +01:00
Fixed #27294 -- Documented UserCreationForm's fields.
This commit is contained in:
parent
f6fe8ecc10
commit
1d25eb9688
@ -1691,7 +1691,14 @@ provides several built-in forms located in :mod:`django.contrib.auth.forms`:
|
||||
|
||||
.. class:: UserCreationForm
|
||||
|
||||
A form for creating a new user.
|
||||
A :class:`~django.forms.ModelForm` for creating a new user.
|
||||
|
||||
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()`.
|
||||
|
||||
.. currentmodule:: django.contrib.auth
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user