Ticket #19402: 19402.2.diff

File 19402.2.diff, 1.3 KB (added by Tim Graham, 12 years ago)
  • docs/topics/auth/customizing.txt

    diff --git a/docs/topics/auth/customizing.txt b/docs/topics/auth/customizing.txt
    index 5f48e82..4cec026 100644
    a b password resets. You must then provide some key implementation details:  
    502502
    503503    .. attribute:: REQUIRED_FIELDS
    504504
    505         A list of the field names that *must* be provided when creating
    506         a user. For example, here is the partial definition for a User model
    507         that defines two required fields - a date of birth and height::
     505        A list of the field names that *must* be provided when creating a user
     506        via the :djadmin:`createsuperuser` management command. The user will be
     507        prompted to supply a value for each of these fields. It should include
     508        any field for which :attr:`~django.db.models.Field.blank` is ``False``
     509        or undefined, but may include additional fields you want prompted for
     510        when a user is created interactively. However, it will not work for
     511        :class:`~django.db.models.ForeignKey` fields.
     512
     513        For example, here is the partial definition for a ``User`` model that
     514        defines two required fields - a date of birth and height::
    508515
    509516            class MyUser(AbstractBaseUser):
    510517                ...
Back to Top