Opened 3 years ago

Closed 3 years ago

#19191 closed Bug (fixed)

Typo in CustomUser docs.

Reported by: spleeyah 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 3 years ago by russellm

  • Easy pickings set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted
  • Type changed from Uncategorized to Bug

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

  • Resolution set to fixed
  • Status changed from new to closed

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