From 1d25eb9688f1a245737490dccf8ba54b6c907052 Mon Sep 17 00:00:00 2001 From: Lewis Cowles Date: Thu, 29 Sep 2016 15:23:42 +0100 Subject: [PATCH] Fixed #27294 -- Documented UserCreationForm's fields. --- docs/topics/auth/default.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt index 2ceda28885..9d70cedf9d 100644 --- a/docs/topics/auth/default.txt +++ b/docs/topics/auth/default.txt @@ -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