Opened 4 years ago

Closed 4 years ago

#19191 closed Bug (fixed)

Typo in CustomUser docs.

Reported by: Brandon Carl Owned by: nobody
Component: Documentation Version: 1.4
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

The first codeblock under: https://docs.djangoproject.com/en/dev/topics/auth/#django.contrib.auth.models.CustomUser.User.USERNAME_FIELD

"identifier" is misspelled.

class MyUser(AbstractBaseUser):
    identfier = models.CharField(max_length=40, unique=True, db_index=True)
    ...
    USERNAME_FIELD = 'identifier'

Change History (2)

comment:1 Changed 4 years ago by Russell Keith-Magee

Easy pickings: set
Triage Stage: UnreviewedAccepted
Type: UncategorizedBug

comment:2 Changed 4 years ago by Claude Paroz <claude@…>

Resolution: fixed
Status: newclosed

In 90c76564669fa03caefcf4318ffdf9ba8fa4d40b:

Fixed #19191 -- Corrected a typo in CustomUser docs

Thanks spleeyah for the report.

Note: See TracTickets for help on using tickets.
Back to Top