Skip to content

Commit

Permalink
[1.6.x] Fixed #21730 -- Removed superfluous db_index in custom auth docs
Browse files Browse the repository at this point in the history
Thanks rafalp for the report.
Backport of c717ebb from master.
  • Loading branch information
claudep committed Jan 4, 2014
1 parent 2206321 commit 5d99cd6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/topics/auth/customizing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ password resets. You must then provide some key implementation details:
as the identifying field::

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

Expand Down Expand Up @@ -991,7 +991,6 @@ authentication app::
verbose_name='email address',
max_length=255,
unique=True,
db_index=True,
)
date_of_birth = models.DateField()
is_active = models.BooleanField(default=True)
Expand Down

0 comments on commit 5d99cd6

Please sign in to comment.