diff options
| author | Claude Paroz <claude@2xlibre.net> | 2014-01-04 16:11:21 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2014-01-04 16:13:21 +0100 |
| commit | 5d99cd6877377824a6a5de92475ad0572ab6fb0f (patch) | |
| tree | c9541c39a89cfc71b1313bd9cb90025b10bdef7d /docs | |
| parent | 2206321ff9494c5f05350def8b50d9680c59adca (diff) | |
[1.6.x] Fixed #21730 -- Removed superfluous db_index in custom auth docs
Thanks rafalp for the report.
Backport of c717ebbfec from master.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/auth/customizing.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/topics/auth/customizing.txt b/docs/topics/auth/customizing.txt index 29c874560d..7c1cb94803 100644 --- a/docs/topics/auth/customizing.txt +++ b/docs/topics/auth/customizing.txt @@ -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) |
