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:11:21 +0100 |
| commit | c717ebbfecd248d1a0ffeffa6d167109936fbe3f (patch) | |
| tree | 1078f44da66ca89fe661ffd7f8030b41af23b140 | |
| parent | 4d27d311f6d598b799ce2cb2df88a1dc54ab8166 (diff) | |
Fixed #21730 -- Removed superfluous db_index in custom auth docs
Thanks rafalp for the report.
| -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 7b15a2f8d3..bdb5b19894 100644 --- a/docs/topics/auth/customizing.txt +++ b/docs/topics/auth/customizing.txt @@ -477,7 +477,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' @@ -965,7 +965,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) |
