[1.6.x] Fixed #21730 -- Removed superfluous db_index in custom auth docs

Thanks rafalp for the report.
Backport of c717ebbfec from master.
This commit is contained in:
Claude Paroz 2014-01-04 16:11:21 +01:00
parent 2206321ff9
commit 5d99cd6877
1 changed files with 1 additions and 2 deletions

View File

@ -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'
@ -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)